Mercurial > data_structures
view src/stack.h @ 10:68f85ffc6029
Finished rbtree. Reworked the iterators in list. Minor tweaks to others.
author | Eris Caffee <discordia@eldalin.com> |
---|---|
date | Fri, 28 Sep 2012 18:24:53 -0500 |
parents | abdba37f67a2 |
children |
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);
11 void * stack_push (struct stack * s, void * elem);
12 void * stack_pop (struct stack * s);
13 size_t stack_size (struct stack * s);
15 #endif