VMS Help
CRTL, calloc
*Conan The Librarian
|
Allocates an area of zeroed memory. This function is AST-
reentrant.
Format
#include <stdlib.h>
void *calloc (size_t number, size_t size);
The calloc function has variants named _calloc32 and _calloc64
for use with 32-bit and 64-bit pointer sizes, respectively.
number
The number of items to be allocated.
size
The size of each item.
The calloc function initializes the items to 0. The maximum
amount of memory allocated at once is limited to 0xFFFFD000.
See also malloc and realloc.
x The address of the first byte, which
is aligned on a quadword boundary
(Alpha only) or an octaword boundary
(Integrity servers(ONLY)) .
NULL Indicates an inability to allocate the space.