Re: malloc was optimized out
Re: malloc was optimized out
- Subject: Re: malloc was optimized out
- From: Dmitry Markman <email@hidden>
- Date: Mon, 04 Jul 2016 16:58:58 -0400
Hi Clark, FYI
http://www.dii.uchile.cl/~daespino/files/Iso_C_1999_definition.pdf
7.20.3.3 The malloc function
. . . . .
Description
2 The malloc function allocates space for an object
whose size is specified by size and whose value is indeterminate.
Returns
3 The malloc function returns either a null pointer
or a pointer to the allocated space.
so there is nothing in C standard about never returning NULL
> On Jul 4, 2016, at 3:58 PM, Clark Cox <email@hidden> wrote:
>
> Malloc effectively *never* returns NULL.
Dmitry Markman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden