Is there any kind of function like strcmp() that does not take into consideration the case of the string?
Printable View
Is there any kind of function like strcmp() that does not take into consideration the case of the string?
Any of those work with MSVC++ 6.0?
stricmp is part of the ansi c and ansi c++ standard. It should even work with MSVC++ 6.0!
...that's asking a lot :pQuote:
It should even work with MSVC++ 6.0!
With MFC you can use the CompareNoCase function of the CString class
>Is there any kind of function like strcmp() that does not take into consideration the case of the string?
It shouldn't be difficult to write it yourself since any compiler specific comparison routine will not be portable.
>stricmp is part of the ansi c and ansi c++ standard.
My copies must be broken then, stricmp isn't mentioned in either.
>It should even work with MSVC++ 6.0!
Yes, this compiler does implement stricmp.
-Prelude