void *malloc( int32 size )
malloc()
procedure in the standard C library. The memory is guaranteed only to be memory that is accessible to the CPU; you cannot specify the memory type (such as VRAM), alignment (such as a memory block that begins on a page boundary), or any other memory characteristics.
Note: You should only use malloc()
when porting existing C programs to Portfolio. If you are writing programs specifically for Portfolio, use AllocMem()
, which allows you to specify the type of memory to allocate, such as VRAM or memory that begins on a page boundary.
CreateMemDebug()
function for more details.
AllocMem
(), AvailMem(), free()