1 #include <stdio.h> 2 #include <stdlib.h> 3 4 /* Fake malloc/free functions that just print something. When run 5 under memcheck these functions will be intercepted and not print 6 anything. */ 7 malloc(size_t size)8void *malloc ( size_t size ) 9 { 10 printf ("malloc\n"); 11 return NULL; 12 } 13 free(void * ptr)14void free (void *ptr) 15 { 16 printf ("free\n"); 17 } 18