thesis: Complete 2.2
This commit is contained in:
10
thesis/listings/wrap.c
Normal file
10
thesis/listings/wrap.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user