OSFree

Syntax

#include <revolution/os.h>

void OSFree(void* ptr);

Arguments

ptr Non-null pointer to the object previously allocated by 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.

Deallocates memory referred to by ptr, a pointer to the current heap.

See Also

Memory Allocation Functions, OSAlloc, OSAllocFromHeap, OSSetCurrentHeap

Revision History

2006/03/01 Initial version.


CONFIDENTIAL