DWC_Realloc

Syntax

#include <dwc.h>

void* DWC_Realloc(DWCAllocType name,
                  void *ptr,
                  u32 oldsize,
                  u32 newsize);

Arguments

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.

Return Values

Returns a pointer to the memory newly allocated using the memory allocation function specified by DWC_Init.

Description

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.

Revision History


CONFIDENTIAL