};
CxAllocator *cxDefaultAllocator = &cx_default_allocator;
+
+int cx_reallocate(
+ void **mem,
+ size_t n
+) {
+ void *nmem = realloc(*mem, n);
+ if (nmem == NULL) {
+ return 1;
+ } else {
+ *mem = nmem;
+ return 0;
+ }
+}
+
// IMPLEMENTATION OF HIGH LEVEL API
void *cxMalloc(