Go to the source code of this file.
Functions | |
void | stack_init (stack *_s) |
Initialize a stack. | |
stack * | stack_create () |
Create and initialize a stack. | |
int | stack_push (stack *_s, void *_elem) |
Pushes a new element onto the stack. | |
void * | stack_pop (stack *_s) |
Removes the top element from the stack. | |
size_t | stack_size (stack *_s) |
Compute the size of a stack. | |
int | stack_is_empty (stack *_s) |
Checks if the stack is empty. | |
void | stack_delete (stack *_s) |
Deletes a stack, not including its data items. | |
void | stack_reset (stack *_s) |
Reset a stack as if it has just been created. | |
void | stack_destroy (stack *_s) |
Destroys a stack, including its data items. | |
node_l * | stack_data (stack *_s) |
Get a pointer to the internal stack data. |
Definition in file stack.c.