Re: How to test whether strstr() returns a null pointer or not?
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Sat, 04 Jun 2005 18:10:44 GMT
John Smith <jsmith@xxxxxxxxxxx> writes:
> Barry Schwarz wrote:
>> Then how do you know it didn't work? The two statements are
>> equivalent. Your change is cosmetic. What is the real problem? Did
>> you include string.h? Do you have your warning level set to max?
>>
>
> A window popped up asking for permission to report the problem to
> Microsoft. That's how I knew something was wrong. Anyway, since
> the program is working now, I'll just leave the mistery behind and
> forget about it.
It's very likely that the error was a symptom of a deeper problem
that's going to bite you again later on. The change you made should
not have made any difference. It's up to you whether you want to
spend time tracking it down, but I'd advise doing so.
--
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.
.
- Follow-Ups:
- References:
- How to test whether strstr() returns a null pointer or not?
- From: John Smith
- Re: How to test whether strstr() returns a null pointer or not?
- From: Barry Schwarz
- Re: How to test whether strstr() returns a null pointer or not?
- From: John Smith
- Re: How to test whether strstr() returns a null pointer or not?
- From: Barry Schwarz
- Re: How to test whether strstr() returns a null pointer or not?
- From: John Smith
- How to test whether strstr() returns a null pointer or not?
- Prev by Date: Re: How to test whether strstr() returns a null pointer or not?
- Next by Date: Re: enum members namespace clash
- Previous by thread: Re: How to test whether strstr() returns a null pointer or not?
- Next by thread: Re: How to test whether strstr() returns a null pointer or not?
- Index(es):
Relevant Pages
|