C Everything
This is a C repository containing a curated set of generic data structures and algorithm.
|
data params struct defn More...
#include <common.h>
Data Fields | |
e_data_types | type |
Holds elem data type. More... | |
f_cmpr | cmpr |
Routine used for comparing two given elems of said type. More... | |
f_assign | assign |
Routine used for creating memory for storing the data. More... | |
f_swap | swap |
Routine used for swaping two elemnts of goven data. More... | |
f_free | free |
Routine used for freeing elements of said data. More... | |
f_cmp_idx | cmpr_idx |
Routine used for comparing elems in given array indicies. More... | |
f_swp_idx | swap_idx |
Routine used for swapring elems in given array indicies. More... | |
f_cpy_idx | copy_idx |
Routine used for copying elems in given array indicies. More... | |
f_get_idx | get_idx |
Routine used for getting elem in given array index. More... | |
f_print | print_data |
Routine used for printing elem data. More... | |
data params struct defn
data params struct to be passed to all data structures it holds functions pointers for operating on data depending on type of it
f_assign assign |
f_cmpr cmpr |
f_cmp_idx cmpr_idx |
f_cpy_idx copy_idx |
f_get_idx get_idx |
f_swap swap |
f_swp_idx swap_idx |
e_data_types type |