This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

strlen on NULL, final test


> 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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]