Helium
|
Customisation of allocators if desired. More...
Go to the source code of this file.
Functions | |
he_return_code_t | he_set_allocators (he_malloc_t malloc, he_calloc_t calloc, he_realloc_t realloc, he_free_t free) |
Set allocators for use by libhelium. More... | |
void * | he_malloc (size_t size) |
Allocate memory using the internal malloc function set by he_set_allocators() More... | |
void * | he_calloc (size_t nmemb, size_t size) |
Allocate memory using the internal calloc function set by he_set_allocators() More... | |
void * | he_realloc (void *ptr, size_t size) |
Allocate memory using the internal realloc function set by he_set_allocators() More... | |
void | he_free (void *ptr) |
Free memory using the internal free function set by he_set_allocators() | |
Customisation of allocators if desired.
void* he_calloc | ( | size_t | nmemb, |
size_t | size | ||
) |
Allocate memory using the internal calloc function set by he_set_allocators()
void* he_malloc | ( | size_t | size | ) |
Allocate memory using the internal malloc function set by he_set_allocators()
void* he_realloc | ( | void * | ptr, |
size_t | size | ||
) |
Allocate memory using the internal realloc function set by he_set_allocators()
he_return_code_t he_set_allocators | ( | he_malloc_t | malloc, |
he_calloc_t | calloc, | ||
he_realloc_t | realloc, | ||
he_free_t | free | ||
) |
Set allocators for use by libhelium.
malloc | A function that conforms to the signature of malloc(3) |
calloc | A function that conforms to the signature of calloc(3) |
realloc | A function that conforms to the signature of realloc(3) |
free | A function that conforms to the signature of free(3) |