28 int res = strcmp((
char*)x,(
char*)y);
65 printf(
"%s", (
char*)str);
83 t_gen tmp = arr[idx1];
84 arr[idx1] = arr[idx2];
Top level include containg common headers.
t_gen gen_get_idx(t_gen x, int idx1)
void gen_swp_idx(t_gen x, int idx1, int idx2)
t_gen assign_string(char *x)
void gen_cpy_idx(t_gen x, int idx1, t_gen data)
void print_str(t_gen str)
e_cmpr compare_string(t_gen x, t_gen y)
e_cmpr gen_cmpr_idx(t_gen x, int idx1, int idx2)
e_cmpr compare_gen(t_gen x, t_gen y)
Contains Macros that are used for defining psuedo data template functions.
t_gen get_idx_int(t_gen, int)
void swap_idx_char(t_gen, int, int)
void copy_idx_int(t_gen, int, t_gen)
t_gen assign_float(float)
#define COPY_IDX(T, NAME)
Template function for copying element to a given index of an array for default data types.
#define CMPR_IDX(T, NAME)
Template function for comparing elemts at given indicies of an array for default data types.
e_cmpr compare_idx_char(t_gen, int, int)
t_gen get_idx_int_cpy(t_gen, int)
t_gen get_idx_char_cpy(t_gen, int)
void copy_idx_char(t_gen, int, t_gen)
e_cmpr compare_int(t_gen, t_gen)
#define CMPR(T, NAME)
Template Compare function for default data types.
e_cmpr compare_char(t_gen, t_gen)
Below routines defined as reference for basic datatypes.
#define GET_IDX_CPY(T, NAME)
Template function for getting element at a given index of an array for default data types.
#define GET_IDX(T, NAME)
Template function for getting element at a given index of an array for default data types.
t_gen get_idx_float(t_gen, int)
#define SWP_IDX(T, NAME)
Template function for swaping elemts at given indicies of an array for default data types.
void swap_int(t_gen, t_gen)
void swap_gen(t_gen, t_gen)
void swap_char(t_gen, t_gen)
e_cmpr compare_float(t_gen, t_gen)
t_gen get_idx_float_cpy(t_gen, int)
void copy_idx_float(t_gen, int, t_gen)
t_gen get_idx_char(t_gen, int)
void swap_idx_int(t_gen, int, int)
#define SWAP(T, NAME)
Template Swap function for default data types.
void swap_string(t_gen, t_gen)
void swap_float(t_gen, t_gen)
e_cmpr compare_idx_int(t_gen, int, int)
#define PRINT_GEN(T, NAME)
Template print function for default data types.
e_cmpr compare_idx_float(t_gen, int, int)
#define ASSGN(T, NAME)
Template Assign memory function for default data types.
void swap_idx_float(t_gen, int, int)
#define get_mem(nmemb, size)
void * t_gen
Base Data type used for all data structure and data elements.
e_cmpr
Custom Compare function return type.