Re: errno in debug vs. release
Re: errno in debug vs. release
- Subject: Re: errno in debug vs. release
- From: John W Noerenberg II <email@hidden>
- Date: Tue, 7 Feb 2006 18:03:10 -0800
At 6:12 PM -0500 2/7/06, Cameron Hayne wrote:
On 7-Feb-06, at 5:10 PM, John W Noerenberg II wrote:
But malloc *is* supposed to set errno* if the size argument equals zero.
I'm not sure where you are getting that from. I don't see it on the man page.
And the following program works fine - as I think it should.
Ok, malloc(0) as an error is a Sys V'ish kinda thing. NetBSD does
provide an option so malloc conforms to this convention, however,
it's not in Darwin.
_______________________________________________
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