#include #include /* Fake malloc/free functions that just print something. When run under memcheck these functions will be intercepted and not print anything. */ void *malloc ( size_t size ) { printf ("malloc\n"); return NULL; } void free (void *ptr) { printf ("free\n"); }