Re: strchr function fails to work properly on Windows 2003 Server
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 09/17/04
- Next message: Igor Tandetnik: "Re: DECIMAL to double convertsion"
- Previous message: Igor Tandetnik: "Re: Is there some class that encapsulate RichEdit with windows API?"
- In reply to: Jaime Rios: "Re: strchr function fails to work properly on Windows 2003 Server"
- Next in thread: Sigurd Stenersen: "Re: strchr function fails to work properly on Windows 2003 Server"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Sep 2004 12:03:03 -0400
"Jaime Rios" <JaimeRios@discussions.microsoft.com> wrote in message
news:C94E08D7-C169-4528-8A1E-DF3B6FFDC0BC@microsoft.com
>>> char* cp = strchr(string, (int)cpChar);
>>
> No, not Unicode... char* cpChar... and I would like to see if cpChar
> == NULL. Thanks.
Huh? The second parameter of strchr is supposed to be a character, _not_
a pointer. What do you expect this code to do? If you want to know
whether cpChar is NULL, why not
if (cpChar == NULL) {...}
--
With best wishes,
Igor Tandetnik
"On two occasions, I have been asked [by members of Parliament], 'Pray,
Mr. Babbage, if you put into the machine wrong figures, will the right
answers come out?' I am not able to rightly apprehend the kind of
confusion of ideas that could provoke such a question." -- Charles
Babbage
- Next message: Igor Tandetnik: "Re: DECIMAL to double convertsion"
- Previous message: Igor Tandetnik: "Re: Is there some class that encapsulate RichEdit with windows API?"
- In reply to: Jaime Rios: "Re: strchr function fails to work properly on Windows 2003 Server"
- Next in thread: Sigurd Stenersen: "Re: strchr function fails to work properly on Windows 2003 Server"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|