cxDataRealloc - change size of IRIS Explorer data memory block
#include <cx/DataOps.h>

void *cxDataRealloc(void *p, size_t size)
subroutine cxDataRealloc(p, size)
integer p, size
Previously allocated memory block.
New size.
cxDataRealloc changes the size of the block pointed to by p to size bytes and returns a pointer handle to the (possibly moved) block. The contents will be unchanged up to the lesser of the new and old sizes.

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, cxDataCalloc, 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.
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Enter the characters shown in the image.