diff options
Diffstat (limited to 'stack.h')
-rw-r--r-- | stack.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#ifndef STACK_H_SENTRY +#define STACK_H_SENTRY + +struct item { + long data; + struct item *next; +}; +typedef struct item* stack; + +void init_stack(stack *st); +void push_stack(stack *st, long num); +long pop_stack(stack *st); +int is_empty_stack(const stack *st); +long top_stack(const stack *st); +extern void* heap_base; + +#endif |