void free( void *p )
malloc()
. It is identical to the free()
procedure in standard C library. The freed memory is automatically returned to the memory list from which it was allocated.
Note: You should only use malloc()
and free()
when porting existing C programs to Portfolio. If you are writing programs specifically for Portfolio, use AllocMem()
and FreeMem()
, which allow 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.
malloc()
call.
FreeMem
(), FreeMemToMemList(), FreeMemToMemLists(), malloc()