10 A general sketch that illustrates how to do this can be found [below](#custom-allocator). |
10 A general sketch that illustrates how to do this can be found [below](#custom-allocator). |
11 |
11 |
12 ## Overview |
12 ## Overview |
13 |
13 |
14 ```C |
14 ```C |
|
15 #include <cx/allocator.h> |
|
16 |
15 void *cxMalloc(const CxAllocator *allocator, size_t n); |
17 void *cxMalloc(const CxAllocator *allocator, size_t n); |
16 |
18 |
17 void *cxCalloc(const CxAllocator *allocator, |
19 void *cxCalloc(const CxAllocator *allocator, |
18 size_t nmemb, size_t size); |
20 size_t nmemb, size_t size); |
19 |
21 |