FastLED 3.9.15
Loading...
Searching...
No Matches

◆ calloc()

void * fl::calloc ( size_t nmemb,
size_t size )

Definition at line 17 of file malloc.cpp.hpp.

17 {
18 size_t total_size = nmemb * size;
19 void* ptr = malloc(total_size);
20 if (ptr != nullptr) {
21 memset(ptr, 0, total_size);
22 }
23 return ptr;
24 }
void * memset(void *s, int c, size_t n) FL_NOEXCEPT
void * malloc(size_t size)
Definition malloc.cpp.hpp:9

References malloc(), and memset().

Referenced by _generate_kernel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: