|
CAEN Utility
2.0.2
Utilities for CAEN projects
|
Wrappers to malloc/realloc/calloc/free. More...
Functions | |
| void * | c_malloc (size_t size) |
| void * | c_realloc (void *ptr, size_t size) |
| void * | c_calloc (size_t nmemb, size_t size) |
| void | c_free (void *ptr) |
| size_t | c_malloc_size (void *ptr) |
| char * | c_strdup (const char *str) |
Wrapper to strdup(str), with check for NULL arguments. To be freed with c_free(). More... | |
| char * | c_strndup (const char *str, size_t size) |
Wrapper to strndup(str, size), with check for NULL arguments. To be freed with c_free(). More... | |
Wrappers to malloc/realloc/calloc/free.
| void* c_malloc | ( | size_t | size | ) |
| void* c_realloc | ( | void * | ptr, |
| size_t | size | ||
| ) |
Definition at line 122 of file CAENMultiplatform.c.
| void* c_calloc | ( | size_t | nmemb, |
| size_t | size | ||
| ) |
| void c_free | ( | void * | ptr | ) |
| size_t c_malloc_size | ( | void * | ptr | ) |
| char* c_strdup | ( | const char * | str | ) |
Wrapper to strdup(str), with check for NULL arguments. To be freed with c_free().
NULL in case of error. Definition at line 204 of file CAENMultiplatform.c.
| char* c_strndup | ( | const char * | str, |
| size_t | size | ||
| ) |
Wrapper to strndup(str, size), with check for NULL arguments. To be freed with c_free().
NULL in case of error. Definition at line 212 of file CAENMultiplatform.c.