[quagga-dev 5267] Re: mes_lookup / LOOKUP robustness

Hasso Tepper hasso at estpak.ee
Tue Feb 26 13:05:25 GMT 2008


Denis Ovsienko wrote:
> > +  const char *str = "(nil)";
> > +
>
> Hello.
> I recall printf substituting NULL with "(nil)", at least in Linux.
> Other implementations may tolerate NULL args differently though.

No. The behaviour is undefined and different compiler/libc versions
behave differently (output "(null)" or segfault) even in Linux.


-- 
Hasso Tepper



More information about the Quagga-dev mailing list