_strnicmp

Compare two strings without regard to case.

int _strnicmp (char * string1, char * string2, size_t max);

int strnicmp (char * string1, char * string2, size_t max);

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

max

  The maximum number of characters to compare

Remarks

The _strnicmp function compares at most max characters from the strings, case insensitive, and returns the following:

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

String

See Also    memcmp, strcmp, strlen, strncmp