Functions | |
| void | cpl_memory_init (void) |
| Initialise the memory management subsystem. More... | |
| void * | cpl_malloc (size_t nbytes) |
| Allocate nbytes bytes. More... | |
| void * | cpl_malloc_clear (size_t nbytes) |
| Allocate nbytes bytes and clear them. More... | |
| void * | cpl_calloc (size_t natoms, size_t nbytes) |
| Allocate memory for natoms elements of size size. More... | |
| void * | cpl_realloc (void *memblk, size_t nbytes) |
| Change the size of a memory block. More... | |
| void | cpl_free (void *memblk) |
| Memory block deallocation. More... | |
xmemory module.
|
||||||||||||
|
Allocate memory for natoms elements of size size.
|
|
|
Memory block deallocation.
|
|
|
Allocate nbytes bytes.
|
|
|
Allocate nbytes bytes and clear them.
|
|
|
Initialise the memory management subsystem.
xmemory module of qfits.
This must be called, once and only once, before any memory is allocated, either by calling any of the allocator functions directly, or indirecly by calling a CPL function which allocates memory.
|
|
||||||||||||
|
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_malloc_clear(), cpl_calloc(), or cpl_realloc().
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002