HeapGetHandle Function (ROM Call 0x239)

alloc.h

HANDLE HeapGetHandle (void);

Gets the next available handle.

HeapGetHandle returns the number of the first unallocated (free) handle, or H_NULL if there are no free handles. Used mainly for internal purposes.


Uses: HeapFree, memmove, memset
Used by: HeapAlloc, HeapAllocESTACK, HeapAllocHigh, time_loop