RTRlib
Loading...
Searching...
No Matches
alloc_utils.h
Go to the documentation of this file.
1/*
2 * This file is part of RTRlib.
3 *
4 * This file is subject to the terms and conditions of the MIT license.
5 * See the file LICENSE in the top level directory for more details.
6 *
7 * Website: http://rtrlib.realmv6.org/
8 */
9
10#ifndef LRTR_ALLOC_UTILS_H
11#define LRTR_ALLOC_UTILS_H
12
13#include <stdlib.h>
14
22void lrtr_set_alloc_functions(void *(*malloc_function)(size_t size), void *(*realloc_function)(void *ptr, size_t size),
23 void (*free_function)(void *ptr));
24
25#endif
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.