]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/interpose-malloc.dtest/foo.c
dyld-851.27.tar.gz
[apple/dyld.git] / testing / test-cases / interpose-malloc.dtest / foo.c
1
2 #include <stdlib.h>
3
4 void* myalloc1(size_t sz)
5 {
6 return malloc(sz);
7 }
8
9 void* (*pMalloc)(size_t) = &malloc;
10
11 void* myalloc2(size_t sz)
12 {
13 return (*pMalloc)(sz);
14 }
15