Does strcmp() take into account the case difference?
Does strcmp() take into account the case difference?
OOOPPPS sorry new to posting supposed to be reply not new post....
Yes, it sure does. If you dont want to compare strings and take case difference into account, use strcmpi().Originally posted by Waspntr
Does strcmp() take into account the case difference?
>> use strcmpi().
typo? its stricmp()
"There are three kinds of people in the world...
Those that can count and those that can't."
No, it's not a typo.
strcmp() - Compares two strings. Case sensitive.
strcmpi() - Compares two strings. Not case sensitive.
Oh, there is a strcmpi(), ive always used stricmp()
"There are three kinds of people in the world...
Those that can count and those that can't."
>>typo? its stricmp()
Nope, some compilers use strcmpi, some use stricmp. Non standard functions are weird like that :-)
*Cela*