1 #ifndef _STDLIB_STUBS_H
2 #define _STDLIB_STUBS_H
5 #include "tdm_list_stubs.h"
7 #include "tdm_private.h"
9 static int CALLOC_ERROR;
10 static int CALLOC_RETURN_BUFFER;
11 static int FREE_CALLED;
13 static tdm_buffer_info buffer;
15 static void *ut_calloc(size_t nmemb, size_t size)
21 if (CALLOC_RETURN_BUFFER) {
25 return calloc(nmemb, size);
28 static void ut_free(void *ptr)
34 #endif /* _STDLIB_STUBS_H */