static void* SF_STDCALL Realloc(void * p, UPInt newSize);
Realloc reallocates the memory block allocated by Alloc to a new size. Reallocation to smaller size than that of the original allocation will never fail and a return of 0 would mean that the function can't reallocate on fail, and previous memory is still valid.
Realloc of pointer == 0 is equivalent to Alloc and Realloc of newSize == 0 is equivalent to Free and will return 0.
Note: Custom alignments are not possible with Realloc. If custom alignment is required, an Alloc/Free call should be made.
Parameters |
Description |
void * p |
Pointer to memory block that is to be reallocated. |
UPInt newSize |
New size of the memory block. |