Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
Go to the source code of this file.
Macros | |
#define | MUL_NO_OVERFLOW (1UL << (sizeof(size_t) * 4)) |
Functions | |
void * | calloc (size_t num, size_t size) |
Allocates memory for an array of given number objects of size and initializes all bytes in the allocated storage to zero. More... | |
void* calloc | ( | size_t | num, |
size_t | size | ||
) |
Allocates memory for an array of given number objects of size and initializes all bytes in the allocated storage to zero.
Allocates memory for an array of num objects of size size and initializes all bytes in the allocated storage to zero.
num | number of objects |
size | size of the array |
Definition at line 11 of file calloc.c.
References malloc(), memset(), MUL_NO_OVERFLOW, NULL, and SIZE_MAX.