Re: Is it guaranteed safe to pass NULL to free()?
Re: Is it guaranteed safe to pass NULL to free()?
- Subject: Re: Is it guaranteed safe to pass NULL to free()?
- From: Brian Mastenbrook <email@hidden>
- Date: Wed, 8 Oct 2008 19:16:08 -0500
On Oct 8, 2008, at 7:13 PM, Sean McBride wrote:
My understanding is that one can safely pass NULL to free(). I've
seen
this stated in man pages on various unices. However, I notice that
Mac
OS X 10.5's man page for free makes no comment about passing NULL. Is
it guaranteed safe by posix or the C standard, or not?
Yes. It is guaranteed safe by the C standard.
--
Brian Mastenbrook
email@hidden
http://brian.mastenbrook.net/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden