OSFreeToHeap

Syntax

#include <revolution/os.h>

void OSFreeToHeap(OSHeapHandle heap, void* ptr);

Arguments

heap Handle to the heap from which ptr was allocated
ptr Pointer to the object previously returned from the OSAlloc or OSAllocFromHeap function

Return Values

None.

Description

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

Returns the memory region referred to by ptr in heap.

See Also

Memory Allocation Functions, OSAlloc, OSAllocFromHeap, OSSetCurrentHeap

Revision History

2006/03/01 Initial version.


CONFIDENTIAL