Re: Is it guaranteed safe to pass NULL to free()?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Oct 8, 2008, at 7:13 PM, Sean McBride wrote: Yes. It is guaranteed safe by the C standard. -- Brian Mastenbrook brian@mastenbrook.net http://brian.mastenbrook.net/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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? This email sent to site_archiver@lists.apple.com
participants (1)
-
Brian Mastenbrook