NAME
cxDataRealloc
- change size of IRIS Explorer data memory block
C SPECIFICATION
#include <cx/DataOps.h>
void *cxDataRealloc(void *p, size_t size)
FORTRAN SPECIFICATION
subroutine cxDataRealloc(p, size)
integer p, size
PARAMETERS
-
p
-
Previously allocated memory block.
-
size
-
New size.
DESCRIPTION
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.
When this happens, cxDataCalloc returns NULL, and a subsequent
call to cxDataAllocErrorGet will return non-zero.
SEE ALSO
cxDataMalloc(3E),
cxDataCalloc(3E),
cxDataFree(3E),
cxDataAllocErrorGet(3E)
Last modified: Mon Nov 18 13:48:13 GMT 1996
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996