#define _POSIX_C_SOURCE 200809L #include #include #include #include "mapalloc.h" int main(void) { int foo = 42; int *ptr = MA_realloc(&foo, sizeof(int)); printf("%d\n", *ptr); }