This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
strlen on NULL, final test
- To: rminnich at sarnoff dot com
- Subject: strlen on NULL, final test
- From: Kjeld dot F dot Christensen at dxd dot ericsson dot se
- Date: Thu, 14 May 1998 09:21:58 +0200
- Cc: gnu-win32 at cygnus dot com
> 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".