DWC_Alloc

C Specification

#include <dwc.h>

void DWC_Alloc  ( DWCAllocType name, u32 size );
void DWC_AllocEx( DWCAllocType name, u32 size, int align );

Description

Memory is allocated using the memory allocation function specified by DWC_SetMemFunc.

When the DWC_Alloc function is used, 32 is passed to the align argument in the memory allocation function. When the DWC_AllocEx function is used, the align argument from this function is passed to the align argument in the memory allocation function.

Arguments

name This information is for library development. Specify 0.
size Size (in bytes) of the memory you wish to allocate.
align Alignment (in bytes) of the memory you wish to reserve. This is passed to the memory allocation function that is set by the DWC_SetMemFunc function.

Return Values

Returns a pointer to the memory allocated by the memory allocation function that is set by the DWC_SetMemFunc function.

See Also

DWC_SetMemFunc DWC_Realloc, DWC_ReallocEx, DWC_Free

Revision History

12/16/2005 Initial version.