MCPcopy Create free account
hub / github.com/FastLED/FastLED / calloc

Function calloc

tests/profile/json_memory_profile.cpp:190–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void* calloc(size_t n, size_t size) {
191#ifdef _WIN32
192 init_real_allocators();
193#endif
194 void* ptr = real_calloc(n, size);
195 if (g_tracking_enabled) {
196 g_stats.on_malloc(ptr, n * size);
197 }
198 return ptr;
199}
200
201void* realloc(void* ptr, size_t size) {
202#ifdef _WIN32

Callers

nothing calls this directly

Calls 3

init_real_allocatorsFunction · 0.85
real_callocFunction · 0.85
on_mallocMethod · 0.80

Tested by

no test coverage detected