man.bsd.lv manual page server

Manual Page Search Parameters

CALLOC(3) Library Functions Manual CALLOC(3)

callocallocate clean memory (zero initialized space)

#include <stdlib.h>

void *
calloc(size_t nmemb, size_t size);

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

The calloc() function returns a pointer to the the allocated space if successful; otherwise a null pointer is returned.

malloc(3), realloc(3), free(3),

The calloc() function conforms to ANSI X3.159-1989 (“ANSI C89”).

4.4BSD-Lite2 June 4, 1993 CALLOC(3)