Nicolas Williams <Nicolas.Williams at Sun.COM> wrote:
> On Wed, Jun 25, 2008 at 09:39:55AM -0700, Garrett D'Amore wrote:
> > Is the next step really to start checking for null arguments to other
> > string functions? What about null pointers passed to other library
> > routines, such as free(), qsort(), bsearch()?
>
> free(NULL) is already allowed, always.
There is a difference: free(NULL) is a mandatory POSIX feature.
J?rg
--
EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin
js at cs.tu-berlin.de (uni)
schilling at fokus.fraunhofer.de (work) Blog:
http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily