Last modified on 14 February 2009, at 03:38

C++ Programming/Code/Standard C Library/Functions/calloc


#include <cstdlib>
void *calloc( size_t num, size_t size);

The function calloc() allocates a block of memory that can store num objects of size size. In addition, the block of memory allocated is set to all zeros.

If the operation fails, calloc() returns NULL.

Related topics
free - malloc - realloc