Re: Program crashes when running it outside dev environment
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Mon, 11 Jun 2007 17:54:27 -0700
pete <pfiland@xxxxxxxxxxxxxx> writes:
Keith Thompson wrote:
Probably the strstr() interface was established before the "const"
keyword was added to the language,
I've never seen a version of strstr
that didn't have a (const char *) type parameter.
and adding a second function with a
distinct name was considered too confusing.
I see that K&R1 doesn't mention strstr, but it does talk about strcat,
strcmp, strcpy, and strlen (and something called strsave, which is
equivalent to strdup, but is presented as an example). This was
before the "const" keyword was added to the language.
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.
- References:
- Program crashes when running it outside dev environment
- From: z
- Re: Program crashes when running it outside dev environment
- From: Richard Heathfield
- Re: Program crashes when running it outside dev environment
- From: David Tiktin
- Re: Program crashes when running it outside dev environment
- From: Richard Heathfield
- Re: Program crashes when running it outside dev environment
- From: Harald van Dijk
- Re: Program crashes when running it outside dev environment
- From: pete
- Re: Program crashes when running it outside dev environment
- From: Keith Thompson
- Re: Program crashes when running it outside dev environment
- From: Ian Collins
- Re: Program crashes when running it outside dev environment
- From: Thad Smith
- Re: Program crashes when running it outside dev environment
- From: Keith Thompson
- Re: Program crashes when running it outside dev environment
- From: pete
- Program crashes when running it outside dev environment
- Prev by Date: Re: constants - pp vs. const
- Next by Date: Re: linked list
- Previous by thread: Re: Program crashes when running it outside dev environment
- Next by thread: Re: Program crashes when running it outside dev environment
- Index(es):
Relevant Pages
|