stricmp

This macro performs string comparison without case distinction. The stricmp macro compares strings in ASCII sequence, ignoring case.

Syntax:

int stricmp (str1, str2)
char *
str1;
char *
str2;

where:

str1                       Variable of type pointer to char. Specifies the location in memory of the first byte of a character string.

str2                       Variable of type pointer to char. Specifies the location in memory of the first byte of a character string.

Return Value

int                     One of the following:

-1          Indicates that str2 comes after str1 in the machine collating sequences, independent of case distinction, str1 < str2.

0           Indicates that the two strings are identical in content, independent of case distinction.

1           Indicates that str1 comes after str2 in the machine collating sequences, independent of case distinction, independent of case distinction, str2 < str1.

Rules