stricmp

Compare two strings without regard to case.

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

Required Header
<string.h>

Return Value

An integer describing relation between the strings as described in the Remarks section.

Parameters

string1

  A string

string2

  A string

Remarks

The stricmp function performs a case insensitive comparison and returns the following:

< 0 string1 is less than string2
= 0 string1 equals string2
> 0 string1 is greater than string2

String

See Also    memcmp, strncmp, _strnicmp, strlen