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

Contains routines that are commonly used by all data structures. More...

#include "common.h"

Go to the source code of this file.

Functions

void init_data_params (t_dparams *prms, e_data_types data_type)
 
Called to initalize data params for default data types Else for custom data types the data params structure is to be defined by user More...
 
void dummy_free (void *mem_addr, char *file, int line)
 
Dummy free function Else for custom data types the data params structure is to be defined by user More...
 

Detailed Description

Contains routines that are commonly used by all data structures.

Definition in file common.c.

Function Documentation

◆ dummy_free()

void dummy_free ( void *  mem_addr,
char *  file,
int  line 
)


Dummy free function Else for custom data types the data params structure is to be defined by user

Parameters
mem_addr- mem to be free'd
Returns
- NA

Definition at line 75 of file common.c.

◆ init_data_params()

void init_data_params ( t_dparams prms,
e_data_types  data_type 
)


Called to initalize data params for default data types Else for custom data types the data params structure is to be defined by user

Parameters
prms- Pointer to param struct that will be filled for default data types
data_type- Type of default data .i.e, int, float, char, double...
Returns
- NA

Definition at line 15 of file common.c.