Mercurial > data_structures
view src/stack.h @ 9:abdba37f67a2
Red-black tree in progress. Linked list needs iterators redone, also in progress. Sleepy.
author | Eris Caffee <discordia@eldalin.com> |
---|---|
date | Fri, 28 Sep 2012 03:08:25 -0500 |
parents | b49d814f20a4 |
children | 68f85ffc6029 |
line source
1 #ifndef STACK_
2 #define STACK_
4 #include <stddef.h>
6 struct stack;
8 struct stack * stack_new(size_t const max);
9 void stack_delete(struct stack * s);
10 void * stack_push(struct stack * s, void * elem);
11 void * stack_pop(struct stack * s);
12 size_t stack_size(struct stack * s);
14 #endif