RTRlib
Loading...
Searching...
No Matches
alloc_utils.h File Reference
#include <stdlib.h>

Go to the source code of this file.

Functions

void lrtr_set_alloc_functions (void *(*malloc_function)(size_t size), void *(*realloc_function)(void *ptr, size_t size), void(*free_function)(void *ptr))
 Sets custom malloc, realloc and free function that is used throughout rtrlib.
 

Function Documentation

◆ lrtr_set_alloc_functions()

void lrtr_set_alloc_functions ( void *(*)(size_t size)  malloc_function,
void *(*)(void *ptr, size_t size)  realloc_function,
void(*)(void *ptr)  free_function 
)

Sets custom malloc, realloc and free function that is used throughout rtrlib.

Parameters
[in]Pointerto malloc function
[in]Pointerto realloc function
[in]Pointerto free function