NAME

cxDataCalloc - allocate and clear space from IRIS Explorer data memory
#include <cx/DataOps.h>

void *cxDataCalloc(size_t nelem, size_t elsize)
integer cxDataCalloc(nelem, elsize)
integer nelem, elsize
nelem
number of elements to be allocated.
elsize
size of each element.
cxDataCalloc returns a pointer to the allocated storage, or NULL if insufficient storage is available. cxDataCalloc allocates space for an array of nelem elements of size elsize, from IRIS Explorer data memory. The space is initialized to zeros. Depending on machine architecture the space may be allocated from a shared memory arena. Otherwise space will be allocated from the module's normal data space.

Shared memory is a fixed resource, so it is possible for the allocation to fail if the shared memory is exhausted.

See cxDataManAbortOnError for more details on writing portable module code that copes well with limited memory.

cxDataMalloc, cxDataRealloc, cxDataFree, cxDataManAbortOnError



[ Documentation Home ]

Website Feedback

If you would like a response from NAG please provide your e-mail address below.

(If you're a human, don't change the following field)
Your first name.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.