MEMAdjustExpHeap

Syntax

#include <revolution/mem.h>

u32 MEMAdjustExpHeap( MEMHeapHandle heap );

Arguments

heap Expanded heap handle.

Return Values

Returns the total size of the expanded heap (including the header) after size reduction if this function is successful. Otherwise, zero is returned.

Description

This function reduces the memory that the expanded heap uses by freeing the free region in the heap. The function fails if a memory block is allocated from the top of the heap region.

See Also

MEMAllocFromExpHeap, MEMAllocFromExpHeapEx, MEMFreeToExpHeap

Revision History

2006/03/01 Initial version.


CONFIDENTIAL