diff options
author | scratko <m@scratko.xyz> | 2024-03-31 21:05:36 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-03-31 21:05:36 +0300 |
commit | 7d07ff825dc7cff7ee80b04346e0d2c49a91e190 (patch) | |
tree | f3bf4c72c22107b0d74143f09af39b0071106540 /stack.h | |
download | arithmetic-expression-computator-7d07ff825dc7cff7ee80b04346e0d2c49a91e190.tar.gz arithmetic-expression-computator-7d07ff825dc7cff7ee80b04346e0d2c49a91e190.tar.bz2 arithmetic-expression-computator-7d07ff825dc7cff7ee80b04346e0d2c49a91e190.zip |
Initial commit
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 |