]>
Commit | Line | Data |
---|---|---|
d104c687 MR |
1 | #ifndef _STACK_H_ |
2 | #define _STACK_H_ | |
3 | ||
4 | #include <stdbool.h> | |
5 | ||
6 | typedef struct _Stack Stack; | |
7 | ||
8 | Stack* stack_init(); | |
9 | void* stack_pop(Stack*); | |
10 | void stack_push(Stack*, void*); | |
11 | void* stack_peek(Stack*); | |
12 | bool stack_empty(Stack*); | |
13 | void** stack_clear(Stack** stack); | |
14 | ||
15 | #endif |