/** * @file tlib/injected/stdfunc.c * * @copyright 2014-2020 Bill Zissimopoulos */ #include #define TLIB_INJECTIONS_ENABLED #include #undef calloc #undef malloc #undef realloc void *tlib_calloc(size_t count, size_t size) { TLIB_INJECT("calloc", return 0); return calloc(count, size); } void *tlib_malloc(size_t size) { TLIB_INJECT("malloc", return 0); return malloc(size); } void *tlib_realloc(void *ptr, size_t size) { TLIB_INJECT("realloc", return 0); return realloc(ptr, size); }