/* * hello.c - Example program to demonstrate different ways to * interpose on the malloc and free functions. * * Note: be sure to compile unoptimized (-O0) so that gcc won't * optimize away the calls to malloc and free. */ /* $begin interposemain */ #include #include int main() { int *p = malloc(32); free(p); return(0); } /* $end interposemain */