Contents

NSZoneCalloc

Allocates memory in a zone.

Declaration

extern 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