On Wed, 20 Oct 1999, Ju Wang wrote:
: 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.
It always prints (null), at least glibc-2.1.2 :
[Alice]:rus:~ # cat k.c
#include <stdio.h>
main()
{
printf("%s",0);
}
[Alice]:rus:~ # gcc k.c
[Alice]:rus:~ # a.out
(null)[Alice]:rus:~ # ldd a.out
libc.so.6 => /lib/libc.so.6 (0x40019000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
[Alice]:rus:~ # ls -l /lib/libc.so.6
lrwxrwxrwx 1 root root 13 ��� 7 18:27 /lib/libc.so.6 ->
libc-2.1.2.so*
:
Rus
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]