#include <revolution/os.h>
void* OSAlloc (u32 size);
|
Size of object to allocate. |
Returns a null pointer if allocation is unsuccessful. Returns a pointer to the allocated region aligned to a 32-byte boundary if allocation is successful.
Although this function is provided for compatibility's sake, we recommend using the MEM library.
Allocates size bytes from the current heap.
You must use the OSInitAlloc and OSCreateHeap functions first to initialize the memory allocation feature and the OSCreateHeap function to create a heap.
Memory Allocation Functions, OSInitAlloc,OSCreateHeap,OSAllocFromHeap, OSFree, OSSetCurrentHeap
03/01/2006 Initial version.