This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: strlen on a NULL
- To: ian at kiwiplan dot co dot nz (Ian Collins)
- Subject: Re: strlen on a NULL
- From: newsham at lava dot net (Tim Newsham)
- Date: Tue, 12 May 1998 09:04:21 -1000 (HST)
- Cc: gnu-win32 at cygnus dot com
> If I do a strlen on a NULL pointer I get a coredump.
> I have the same code running on a few *other* Unix machines with
> exhibiting this behaviour.
> OK, so I could tidy it up, but I wondered is this an oversight or the
> correct behaviour?
This is a common behavior, and IMO, the correct behavior (if I am doing
a strlen on a null variable, I want to know about it).
Tim N.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".