NAME
calloc —
allocate clean memory (zero initialized
space)
SYNOPSIS
#include
<stdlib.h>
void *
calloc(size_t
nmemb, size_t
size);
DESCRIPTION
Thecalloc()
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() function returns a pointer to
the the allocated space if successful; otherwise a null pointer is
returned.
SEE ALSO
STANDARDS
The calloc() function conforms to
ANSI X3.159-1989
(“ANSI C89”).