Is there any kind of function like strcmp() that does not take into consideration the case of the string?
Is there any kind of function like strcmp() that does not take into consideration the case of the string?
stricmp is part of the ansi c and ansi c++ standard. It should even work with MSVC++ 6.0!
...that's asking a lot
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
My best code is written with the delete key.