Mount Fuji Engine  0.8b
void * MFHeap_Realloc ( void *  pMem,
size_t  bytes 
)

Allocates a new memory block of the specified size and copies the contents of the previous buffer. The old buffer is safely released.

Parameters
pMemPointer to block of memory being re-allocated.
bytesNumer of bytes to allocate for the new buffer.
Returns
A pointer to the new allocated memory.
Remarks
If the new allocation is smaller than the previous allocation, only the number of bytes that fit into the new allocation will be copied. The remaining memory will be lost. Memory will be allocated using the same heap manager as the initial allocation.
See Also
MFHeap_Alloc()
MFHeap_Free()