|
Tou
Tou header library
|
Typedefs | |
| typedef tou_llist_t | tou_stack |
| Make a stack alias for convenience. | |
Functions | |
| tou_llist_t * | tou_stack_new () |
| Creates a new stack object. | |
| void | tou_stack_destroy (tou_llist_t *stack) |
| Destroys existing stack object. | |
| size_t | tou_stack_len (tou_llist_t *stack) |
| Returns the length of the stack. | |
| void | tou_stack_push (tou_llist_t **stack, void *elem) |
| Pushes a new element to the top of the stack. | |
| void * | tou_stack_pop (tou_llist_t **stack) |
| Pops an element from the top of the stack. | |
| void tou_stack_destroy | ( | tou_llist_t * | stack | ) |
Destroys existing stack object.
| [in] | stack | Object to destroy |
| size_t tou_stack_len | ( | tou_llist_t * | stack | ) |
Returns the length of the stack.
| [in] | stack | Stack object |
| tou_llist_t * tou_stack_new | ( | ) |
Creates a new stack object.
| void * tou_stack_pop | ( | tou_llist_t ** | stack | ) |
Pops an element from the top of the stack.
| [in] | stack | Pointer to the stack object |
| void tou_stack_push | ( | tou_llist_t ** | stack, |
| void * | elem ) |
Pushes a new element to the top of the stack.
| [in] | stack | Stack object |
| [in] | elem | Element to push |