Re: errno in debug vs. release
Re: errno in debug vs. release
- Subject: Re: errno in debug vs. release
- From: Chris Ridd <email@hidden>
- Date: Wed, 08 Feb 2006 07:05:01 +0000
- Thread-topic: errno in debug vs. release
On 8/2/06 3:52, Justin C. Walker <email@hidden> wrote:
> On Feb 7, 2006, at 19:13 , E. Wing wrote:
>> Maybe I missed part of the thread that states which man page the
>> snipet comes from, but my man page does mention errno (Tiger
>> 10.4.4/Xcode 2.2.1).
>>
>> If successful, the malloc(), calloc(), and valloc() functions
>> return a
>> pointer to allocated memory. If there is an error, they
>> return a NULL
>> pointer and set errno to ENOMEM.
>
> I haven't updated to 2.2.1 yet; my (2.2 install) man page does not
> say this.
Mine (from Xcode 2.2.1) actually has two paragraphs about this - the first
one in DESCRIPTION just says it "returns a NULL pointer if there is an
error" and the second one in RETURN VALUES says "it returns a NULL pointer
and sets errno to ENOMEM" if there's an error.
You have to read the whole thing :-)
Cheers,
Chris
_______________________________________________
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