28struct _cx_memory_vtable_
30 cxptr (*malloc)(cxsize);
31 cxptr (*calloc)(cxsize, cxsize);
32 cxptr (*realloc)(cxptr, cxsize);
36typedef struct _cx_memory_vtable_ cx_memory_vtable;
cxptr cx_malloc_clear(cxsize)
Allocate nbytes bytes and clear them.
Definition cxmemory.c:320
void cx_memory_vtable_set(const cx_memory_vtable *)
Install a new set of memory managmement functions.
Definition cxmemory.c:223
void cx_free(cxptr)
Memory block deallocation.
Definition cxmemory.c:476
cxptr cx_malloc(cxsize)
Allocate nbytes bytes.
Definition cxmemory.c:271
cxptr cx_realloc(cxptr, cxsize)
Change the size of a memory block.
Definition cxmemory.c:432
cxptr cx_calloc(cxsize, cxsize)
Allocate memory for natoms elements of size size.
Definition cxmemory.c:371
cxbool cx_memory_is_system_malloc(void)
Check if the system's defaults are used for memory allocation.
Definition cxmemory.c:517