The lstrcmpi (alias stricmp) function compares two character strings. The comparison is not case sensitive.
int lstrcmpi( LPCSTR lpString1, LPCSTR lpString2 )
If the string pointed to by lpString1 is less than the string pointed to by lpString2, the return value is negative.
If the string pointed to by lpString1 is greater than the string pointed to by lpString2, the return value is positive.
If the strings are equal, the return value is zero.
EX1
void lstrcmpi_ex1() { string str1 = "Hello World!"; int cmp = lstrcmpi(str1, "HELLO WORLD!"); // cmp equals 0. out_int("cmp = ", cmp); }
strcmp, lstrcmp
origin.h