Home | History | Annotate | Download | only in tests
      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 
      8 void *malloc ( size_t size )
      9 {
     10   printf ("malloc\n");
     11   return NULL;
     12 }
     13 
     14 void free (void *ptr)
     15 {
     16   printf ("free\n");
     17 }
     18