6 void *(*plibc_malloc
)(size_t size
) = NULL
;
8 void *malloc(size_t size
)
10 if(plibc_malloc
== NULL
) {
11 plibc_malloc
= dlsym(RTLD_NEXT
, "malloc");
12 if(plibc_malloc
== NULL
) {
13 fprintf(stderr
, "mallocwrap: unable to find malloc\n");
17 fprintf(stderr
, "mallocating size %d\n", size
);
18 return plibc_malloc(size
);
This page took 0.032714 seconds and 4 git commands to generate.