OSAddToHeap

C Specification

#include <revolution/os.h>
void OSAddToHeap (OSHeapHandle heap, void* start, void* end);

Arguments

heap Operating heap handle that was previously created using the OSCreateHeap function.
size Start address of block to add to heap.
end End address of block to add to heap.

Return Values

None.

Description

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

Adds an arbitrary memory block to heap. This function is used to free blocks previously allocated using the OSAllocFixed function or to create noncontiguous heaps.

See Also

Memory Allocation Functions, OSAllocFixed, OSCreateHeap

Revision History

03/01/2006 Initial version.