Index of Section 3 Manual Pages
| Interix / SUA | calloc.3 | Interix / SUA |
calloc(3) calloc(3)
calloc()
NAME
calloc() - allocate clean memory (zero initialized space)
SYNOPSIS
#include
void * calloc (size_t nmemb, size_t size)
DESCRIPTION
The calloc(3) function allocates space for an array of nmemb objects, each
of whose size is size. The space is initialized to all bits zero.
RETURN VALUES
The calloc(3) function returns a pointer to the allocated space if
successful; otherwise it returns NULL.
SEE ALSO
free(3)
malloc(3)
realloc(3)
USAGE NOTES
The calloc function is thread safe.
The calloc function is not async-signal safe.