OSAddToHeap

Syntax

#include <revolution/os.h>

void OSAddToHeap(OSHeapHandle heap, void* start, void* end);

Arguments

heap Handle to the active heap, previously created with the OSCreateHeap function
size Starting address of the block to add to heap
end Ending address of the block to add to heap

Return Values

None.

Description

Although this function is provided for the sake of compatibility, we recommend using the MEM library.

Adds an arbitrary block of memory to heap. Used to deallocate blocks previously allocated with the OSAllocFixed function, or to create non-contiguous heaps.

See Also

Memory Allocation Functions, OSAllocFixed, OSCreateHeap

Revision History

2006/03/01 Initial version.


CONFIDENTIAL