aboutsummaryrefslogtreecommitdiff
path: root/data_structures/chapter_3/stack.h
blob: f93c4671c43d80ec2810622f0eceadb1b4282b9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _STACK_H

struct node;
typedef struct node *ptr_to_node;
typedef ptr_to_node stack;
typedef int elem;

int is_empty(stack s);
stack create_stack();
void dispose_stack(stack s);
void make_empty(stack s);
void push(elem x, stack s);
elem top(stack s);
void pop(stack s);

#endif