|
C Everything
This is a C repository containing a curated set of generic data structures and algorithm.
|
stack struct defn More...
#include <stack.h>
Data Fields | |
| char * | name |
| Stack instance name. More... | |
| int | count |
| Total elems present in stack. More... | |
| int | max_size |
| Max Size of stack. More... | |
| int | top |
| Stack Top. More... | |
| e_stacktype | type |
| Stack Type. More... | |
| t_gen * | data |
| f_gen2 | push |
| stack operations More... | |
| f_gen | pop |
| routine to pop element into stack More... | |
| f_genidx | peek |
| routine to peek elements in stack More... | |
| f_full | full |
| routine to check if stack is full More... | |
| f_empty | empty |
| routine to check if stack is empty More... | |
| f_len | len |
| routine to get len of stack More... | |
| f_print | |
| routine to print stack contents More... | |
| f_vgen | destroy |
| routine to destroy stack contents More... | |
| f_free | free |
| routies for operating on data More... | |
| f_print | print_data |
| f_gen2 push |
| e_stacktype type |