INtime SDK Help
calloc

Allocates and clears an array in memory; initializes each element to 0.

#include <stdlib.h>

void *calloc (size_t num, size_t size);

void *_calloc_internal (size_t num, size_t size);

Parameters

num
Number of elements to allocate storage space for.
size
Length in bytes of each element.

Remarks

The allocated memory is guaranteed to be suitably aligned for storage of any type of object. To get a pointer to a type other than void, use a type cast on the return value.

_calloc_internal behaves identically to calloc, use it to implement your own debug version of calloc.

Return Values

A pointer to the allocated space.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/stdlib.h stdlib.h clib.lib

See Also

free, malloc, realloc, C/C++ Runtime Heap, Memory pools