![]() |
FreeMem |
||||
Header: | MacMemory.h | Carbon status: | Supported | |
Returns the total amount of free space in the current heap zone.
SInt32 FreeMem ();
Total amount of free space, in bytes, in the current heap zone. Note that usually you cannot allocate a block of that size, because of heap fragmentation due to nonrelocatable or locked blocks.
Call the function MemError to get the result code. See
Even though FreeMem does not move or purge memory, you should not call it at interrupt time because the heap might be in an inconsistent state.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)