C Everything
This is a C repository containing a curated set of generic data structures and algorithm.
generic_def.c File Reference

Contains routines for handling different types of data for generic operation. More...

#include "common.h"
#include "generic_def.h"

Go to the source code of this file.

Functions

e_cmpr compare_gen (t_gen x, t_gen y)
 
e_cmpr compare_string (t_gen x, t_gen y)
 
t_gen assign_string (char *x)
 
void print_str (t_gen str)
 
t_gen gen_get_idx (t_gen x, int idx1)
 
void gen_cpy_idx (t_gen x, int idx1, t_gen data)
 
void gen_swp_idx (t_gen x, int idx1, int idx2)
 
e_cmpr gen_cmpr_idx (t_gen x, int idx1, int idx2)
 

Detailed Description

Contains routines for handling different types of data for generic operation.

Definition in file generic_def.c.

Function Documentation

◆ assign_string()

t_gen assign_string ( char *  x)

Definition at line 43 of file generic_def.c.

◆ compare_gen()

e_cmpr compare_gen ( t_gen  x,
t_gen  y 
)

Definition at line 13 of file generic_def.c.

◆ compare_string()

e_cmpr compare_string ( t_gen  x,
t_gen  y 
)

Definition at line 26 of file generic_def.c.

◆ gen_cmpr_idx()

e_cmpr gen_cmpr_idx ( t_gen  x,
int  idx1,
int  idx2 
)

Definition at line 88 of file generic_def.c.

◆ gen_cpy_idx()

void gen_cpy_idx ( t_gen  x,
int  idx1,
t_gen  data 
)

Definition at line 74 of file generic_def.c.

◆ gen_get_idx()

t_gen gen_get_idx ( t_gen  x,
int  idx1 
)

Definition at line 68 of file generic_def.c.

◆ gen_swp_idx()

void gen_swp_idx ( t_gen  x,
int  idx1,
int  idx2 
)

Definition at line 80 of file generic_def.c.

◆ print_str()

void print_str ( t_gen  str)

Definition at line 63 of file generic_def.c.