A prototype for a function callback that deallocates a block of memory.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The block of memory to deallocate.
An untyped pointer to program-defined data.
A prototype for a function callback that deallocates a given block of memory. In implementing this function, make the block of memory pointed to by
ptr available for subsequent reuse by the allocator but unavailable for continued use by the program. The
ptr parameter cannot be NULL and if the
ptr parameter is not a block of memory that has been previously allocated by the allocator, the results are undefined; abnormal program termination can occur.