strlen on NULL, final test
Kjeld.F.Christensen@dxd.ericsson.se
Kjeld.F.Christensen@dxd.ericsson.se
Thu May 14 00:42:00 GMT 1998
> bash$ cat test.c
> main()
> {
> (void) strlen((char *) 0);
> }
>
> bash$ cc test.c
> bash$ ./a.out
> Segmentation fault (core dumped)
> bash$
>
> Again: linux, freebsd, sunos, solaris.
>
> So I have not yet seen the strlen that works with strlen((char *)0);
Well I certainly does no crash on a HP
Kjeld
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
More information about the Cygwin
mailing list