#include <stdlib.h>
void *calloc(size_t num, size_t size);
The calloc() function reserves storage space for an array of num elements, each of length size bytes. The calloc() function then gives all the bits of each element an initial value of 0.
The calloc() function returns a pointer to the reserved space. The storage space to which the returned value points is aligned for storage of any type of object.
If successful, calloc() returns the pointer to the area of memory reserved.
If there is not enough space to satisfy the request or if num or size is 0, calloc() returns NULL.