]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/amfi-interpose.dtest/interposer.c
3 #include <mach-o/dyld-interposing.h>
7 void* mymalloc(size_t size
)
9 // bump ptr allocate twice the size and fills with '#'
10 char* result
= malloc(size
*2);
11 memset(result
, '#', size
*2);
20 DYLD_INTERPOSE(mymalloc
, malloc
)
21 DYLD_INTERPOSE(myfree
, free
)