Ju Wang <[EMAIL PROTECTED]> writes:

> guess what you will get from printf("%s",0), different clib deal with
> it the different way, the microsoft tolerate it and print a 'null' in 
> the console, while the glibc will mostly core dump. so next time when
> port something from PC to unix, be careful to avoid such stupid thing.

Try using something like:


        printf ("%s", s ? s : "(null)");

if you're worried so much about dumping your core.  On the other hand, having
the core cumped on you, means you will suspect a bug is larking somewhere,
which is a good thing to know, IMHO.

-- 
Giorgos Keramidas, <[EMAIL PROTECTED]>
"What we have to learn to do, we learn by doing." [Aristotle]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to