C Programming Language learn c tutorial

stricmp()

Syntax:
#include<string.h>
int stricmp( char *str1, char *str2 );

                   stricmp(str1,str2) compares str1 and str2 lexicographically without regards to case .Returns a negative value if str1<str2; 0 if str1 and str2 are identical; and positive value if str1>str2.

Example:

stricmp() function  
strncmp() Home strncmpi()