External Interfaces/API Reference Previous page   Next Page
mxRealloc

Reallocate memory

Fortran Syntax

Arguments

ptr
   Pointer to a block of memory allocated by mxCalloc, or by a previous call to mxRealloc.

size
   New size of allocated memory, in bytes.

Returns

A pointer to the reallocated block of memory on success, and 0 on failure.

Description

mxRealloc reallocates the memory routine for the managed list. If mxRealloc fails to allocate a block, you must free the block since the ANSI definition of realloc states that the block remains allocated. mxRealloc returns 0 in this case, and in subsequent calls to mxRealloc of the form

See Also

mxCalloc, mxFree, mxMalloc


Previous page  mxMalloc mxRemoveField Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2010 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS