The calloc function

Name

calloc -- 

Synopsis

#include <stdlib.h>

void *calloc (size_t nmemb, size_t size);

Description

The calloc function allocates space for an array of nmemb objects, each of whose size is size. The space is initialized to all bits zero.

Returns

The calloc function returns either a null pointer or a pointer to the allocated space.

See Also

The free function
The malloc function
The realloc function

Implementation Notes

The pointer returned is always 8-byte aligned so that objects of type double may be assigned.