Main Page | Modules | Data Structures | Directories | File List | Data Fields

Memory


Functions

void u_memory_set_malloc (void *(*f_malloc)(size_t))
 Set malloc(3) replacement.
void u_memory_set_calloc (void *(*f_calloc)(size_t, size_t))
 Set calloc(3) replacement.
void u_memory_set_realloc (void *(*f_realloc)(void *, size_t))
 Set realloc(3) replacement.
void u_memory_set_free (void(*f_free)(void *))
 Set free(3) replacement.
void * u_malloc (size_t sz)
 Wrapper for malloc-like function.
void * u_calloc (size_t cnt, size_t sz)
 Wrapper for calloc-like function.
void * u_zalloc (size_t sz)
 Alloc a contiguous region of sz bytes and zero-fill it.
void * u_realloc (void *ptr, size_t sz)
 Wrapper for realloc-like function.
void u_free (void *ptr)
 Wrapper for free-like function, sanity checks the supplied pointer.

←Products
© 2005-2007 - KoanLogic S.r.l. - All rights reserved