File: alloc_utils.h

package info (click to toggle)
librtr 0.8.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,640 kB
  • sloc: ansic: 9,862; perl: 5,146; makefile: 177; sh: 107
file content (25 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * This file is part of RTRlib.
 *
 * This file is subject to the terms and conditions of the MIT license.
 * See the file LICENSE in the top level directory for more details.
 *
 * Website: http://rtrlib.realmv6.org/
 */

#ifndef LRTR_ALLOC_UTILS_H
#define LRTR_ALLOC_UTILS_H

#include <stdlib.h>

/**
 * @brief Sets custom malloc, realloc and free function
 * that is used throughout rtrlib.
 * @param[in] Pointer to malloc function
 * @param[in] Pointer to realloc function
 * @param[in] Pointer to free function
 */
void lrtr_set_alloc_functions(void *(*malloc_function)(size_t size), void *(*realloc_function)(void *ptr, size_t size),
			      void (*free_function)(void *ptr));

#endif