OSCheckHeap

C Specification

#include <revolution/os.h>
long OSCheckHeap(OSHeapHandle heap);

Arguments

heap Active heap handle.

Return Values

Returns -1 if heap is inconsistent. Otherwise, the number of bytes that a free list can use.

Description

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

Checks the heap region heap for debugging.

See Also

Memory Allocation Functions, OSDumpHeap, OSInitAlloc

Revision History

03/01/2006 Initial version.