]> www.ginac.de Git - cln.git/blob - include/cl_malloc.h
1528438ee4e28be3c09ce91128b78b6c34b8b57d
[cln.git] / include / cl_malloc.h
1 // User modifiable memory allocator.
2
3 #ifndef _CL_MALLOC_H
4 #define _CL_MALLOC_H
5
6 #include <stdlib.h>
7
8 // Function like malloc() which returns aligned memory of size (> 0) bytes.
9 extern void* (*cl_malloc_hook) (size_t size);
10 // Function like free() which makes available for reuse such memory.
11 extern void (*cl_free_hook) (void* ptr);
12
13 #endif /* _CL_MALLOC_H */