When comparing strings (e.g. using strcmp() ), is there any way in C++ to return a true result if the letters of the string are the same but the case is not?
i.e To return true when comparing 'programming' with 'PROgramming'
Try one of the following
[tt]
strcasecmp()
strcmpi()
stricmp()
[/tt]
But there is no standard name for the routine, so you need to go look in string.h to find out how (or even if) your compiler vendor has implemented it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.