#include <dwc.h>void* DWC_Realloc(DWCAllocType name,
void *ptr,
u32 oldsize,
u32 newsize);| name | Information for library development. Specify 0. |
| ptr | Pointer to the memory allocated using the memory allocation function specified by the DWC_Init function. |
| oldsize | Information for library development. Specify 0. |
| newsize | Memory size (in bytes) after making the change. |
Returns a pointer to the memory newly allocated using the memory allocation function specified by DWC_Init.
This function moves the memory (allocated using the memory allocation function specified by DWC_Init) after changing its size.
Once memory of a new size has been reserved in a different region, the library internally releases the original memory. When the DWC_Realloc function is used, 32 is assigned to the align argument in the memory allocation function.
CONFIDENTIAL