N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential

   

realloc

#include <malloc.h>
void *realloc (void *ptr, int size);


Arguments
  • ptr is the pointer to the beginning of the reserved area to be changed
  • size is the 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.

What This Function Does
It resizes the memory block in a reserved area that was reserved by the InitHeap function. It changes the size of the block pointed to by ptr to the new size specified by size. The content up to the lessor of the old or new size is not changed. The function attempts to keep the same base address, but if that is not possible, a new base address is generated.

Note
This standard function comes with NuSystem.


Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998