Carbon


TempFreeMem

Header: MacMemory.h Carbon status: Supported

Returns the total amount of memory available for temporary allocation.

SInt32 TempFreeMem ();
function result

The total amount of free temporary memory, in bytes, that you could allocate by calling TempNewHandle. Because these bytes might be dispersed throughout memory, it is ordinarily not possible to allocate a single relocatable block of that size.

SPECIAL CONSIDERATIONS

Even though TempFreeMem does not move or purge memory, you should not call it at interrupt time.

AVAILABILITY

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)