MCPcopy Create free account
hub / github.com/SmingHub/Sming / mc_zalloc

Function mc_zalloc

Sming/Components/malloc_count/malloc_count.cpp:252–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252extern "C" void* mc_zalloc(size_t size)
253{
254 auto ptr = mc_malloc(size);
255 if(ptr != nullptr) {
256 memset(ptr, 0, size);
257 }
258 return ptr;
259}
260
261extern "C" void mc_free(void* ptr)
262{

Callers 1

mc_callocFunction · 0.85

Calls 1

mc_mallocFunction · 0.85

Tested by

no test coverage detected