Allocates and clears an array in memory; initializes each element to 0.
#include <stdlib.h> void *calloc (size_t num, size_t size); void *_calloc_internal (size_t num, size_t size);
num
size
The allocated memory is guaranteed to be suitably aligned for storage of any type of object. To get a pointer to a type other than void, use a type cast on the return value.
_calloc_internal behaves identically to calloc, use it to implement your own debug version of calloc.
A pointer to the allocated space.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdlib.h | stdlib.h | clib.lib |