Functions | |
void * | cpl_malloc (size_t nbytes) |
Allocate nbytes bytes. | |
void * | cpl_calloc (size_t natoms, size_t nbytes) |
Allocate memory for natoms elements of size size. | |
void * | cpl_realloc (void *memblk, size_t nbytes) |
Change the size of a memory block. | |
void | cpl_free (void *memblk) |
Memory block deallocation. | |
char * | cpl_strdup (const char *string) |
Duplicate a string. |
xmemory
module.
|
Allocate memory for natoms elements of size size.
|
|
Memory block deallocation.
|
|
Allocate nbytes bytes.
|
|
Change the size of a memory block.
NULL the call to cpl_realloc() is equivalent to cpl_malloc(), and if nbytes is 0 the call is equivalent to cpl_free(). Unless memblk is NULL , it must have been returned by a previous call to cpl_malloc(), cpl_calloc(), or cpl_realloc().
|
|
Duplicate a string.
|