Re: errno in debug vs. release
Re: errno in debug vs. release
- Subject: Re: errno in debug vs. release
- From: "Justin C. Walker" <email@hidden>
- Date: Tue, 7 Feb 2006 19:52:52 -0800
Thanks for the followup.
On Feb 7, 2006, at 19:13 , E. Wing wrote:
and there is no mention of errno in the man page. Errno is generally
set by system calls (which malloc isn't). The man pages will
indicate errno values for specific errors, and what indicates that
you should check errno.
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.
(The man
page also warns against relying too heavily on this in case you use
custom malloc implementations which may not conform to this.)
This may be the best advice :-}
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
If you're not confused,
You're not paying attention
--------
_______________________________________________
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