diff options
Diffstat (limited to 'src/stack.h')
| -rw-r--r-- | src/stack.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/stack.h b/src/stack.h new file mode 100644 index 0000000..784180a --- /dev/null +++ b/src/stack.h @@ -0,0 +1,13 @@ +#ifndef STACK_H_ +#define STACK_H_ + +#include "queue.h" + +typedef struct queue Stack; + +Stack *stackAlloc(); +void stackAdd(Stack *stack, int item); +int stackPop(Stack *stack); +void stackFree(Stack *stack); + +#endif |
