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

struct stack_record;
typedef struct stack_record *stack;
typedef int elem;

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

#endif