MCPcopy Create free account
hub / github.com/cpputest/cpputest / cpputest_calloc_location

Function cpputest_calloc_location

src/CppUTest/TestHarness_c.cpp:240–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238
239
240void* cpputest_calloc_location(size_t num, size_t size, const char* file, size_t line)
241{
242 void* mem = cpputest_malloc_location(num * size, file, line);
243 if (mem)
244 PlatformSpecificMemset(mem, 0, num*size);
245 return mem;
246}
247
248void* cpputest_realloc_location(void* memory, size_t size, const char* file, size_t line)
249{

Callers 1

cpputest_callocFunction · 0.85

Calls 2

cpputest_malloc_locationFunction · 0.85
PlatformSpecificMemsetFunction · 0.85

Tested by

no test coverage detected