calloc(3) - NetBSD Manual Pages

Command: Section: Arch: Collection:  
CALLOC(3)                 NetBSD Programmer's Manual                 CALLOC(3)


NAME
calloc - allocate clean memory (zero initialized space)
LIBRARY
Standard C Library (libc, -lc)
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.
RETURN VALUES
The calloc() function returns a pointer to the allocated space if suc- cessful; otherwise a null pointer is returned.
SEE ALSO
malloc(3), realloc(3), free(3)
STANDARDS
The calloc() function conforms to ANSI X3.159-1989 (``ANSI C''). NetBSD 1.4 June 4, 1993 1
Powered by man-cgi (2024-03-20). Maintained for NetBSD by Kimmo Suominen. Based on man-cgi by Panagiotis Christias.