1
0
Files
BSc-Thesis/thesis/listings/wrap.c

11 lines
210 B
C

#include <stddef.h>
extern void *__real_malloc(size_t size);
void *__wrap_malloc(size_t size) {
// before call to malloc
void *ret = __real_malloc(size);
// after call to malloc
return ret;
}