allwinner_a64/android/external/valgrind/memcheck/tests/wrapmallocso.c
2018-08-08 16:14:42 +08:00

17 lines
310 B
C

#include <stdio.h>
#include <stdlib.h>
/* 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");
}