Syntax
#include <malloc.h>
void *realloc(void *ptr, int size);
void *mt_realloc(void *ptr, int size);
Arguments
ptr pointer to the beginning of the reserved area to be changed
size new size for the reserved area
Return Value
The pointer to the beginning of the resized reserved area, or NULL if the area could not be resized.
Description
It resizes the memory block in a reserved area that was reserved by the InitHeap function. mt_realloc is the multi-thread compatible version of realloc. Interruption is inhibited when processing is being performed to prevent malfunction if used by more than one thread.
Revision History
6/1/99 Added explanation of the multi-thread version