summaryrefslogtreecommitdiffstats
path: root/doc/manual/example4/function.c
blob: 8666666a90a4aa0cdfa22343e73cf0e637eb587c (plain)
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);
}