1 2 3 4 5 6 7 8 9 10
#include <stdlib.h> #include <malloc.h> void* custom_allocate(int num_bytes) { return malloc(num_bytes); } void custom_free(void* data) { free(data); }