Contents

NSZoneFromPointer

Gets the zone for a given block of memory.

Declaration

extern NSZone *NSZoneFromPointer(void *ptr);

Return Value

The zone for the block of memory indicated by pointer, or NULL if the block was not allocated from a zone.

Discussion

pointer must be one that was returned by a prior call to an allocation function.

See Also

Managing Zones