On Thu, Nov 10, 2011 at 6:03 PM, Don Quixote de la Mancha <quix...@dulcineatech.com> wrote: > calloc() and malloc() are documented to return NULL when there isn't > enough memory to satisfy the user's request. Their implementation is > simply broken if they don't do that.
Because calloc and malloc never return, they are not violating the spec. Nothing about the POSIX spec requires these functions to return. _If_ they return, they must either return a suitably-aligned pointer or NULL (unless they were passed a size of 0, in which case the result is implementation-defined). --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com