Andy Spitzer <[EMAIL PROTECTED]> wrote:
> Perhaps another way to look at this issue is that the libc library is at
> fault for dereferencing the NULL pointer in printf. There is no need for it
> do dereference the pointer, as it can (and should) check for NULL first.
>
> I think that passing NULL to formatting functions for %s should not crash,
> (ala glibc) as NULL is a perfectly legal value for a string. It is the same
> as passing the results of 1.0 /0.0 to a %f. The formating functions convert
> that to "Inf", why shouldn't they convert NULL %s as "(NULL)" as well?
The first non biased argument ;-)
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code