Example: stricmpString Manipulation Functions

Performs a case-insensitive comparison of two strings.

int  stricmp( const char *string1, const char *string2); 

string1 The first string for comparison.
string2 The second string for comparison.

Return Values

Returns a value indicating the lexicographical relation between the strings:

Return value Description
<0 string1 is less than string2
0 string1 is the same as string2
>0 string1 is greater than string2