Function

NSZoneCalloc

Allocates memory in a zone.

Declaration

void * NSZoneCalloc(NSZone *zone, NSUInteger numElems, NSUInteger byteSize);

Discussion

Allocates enough memory from zone for numElems elements, each with a size numBytes bytes, and returns a pointer to the allocated memory. The memory is initialized with zeros. This function returns NULL if it was unable to allocate the requested memory.

See Also

Managing Zones

NSCreateZone

Creates a new zone.

NSRecycleZone

Frees memory in a zone.

NSSetZoneName

Sets the name of the specified zone.

NSZoneFree

Deallocates a block of memory in the specified zone.

NSZoneFromPointer

Gets the zone for a given block of memory.

NSZoneMalloc

Allocates memory in a zone.

NSZoneName

Returns the name of the specified zone.

NSZoneRealloc

Allocates memory in a zone.

NSDefaultMallocZone

Returns the default zone.