StrNICmp

int StrNICmp (const char string1[], const char string2[], int maxChars);

Purpose

Performs a byte–by–byte, case–insensitive comparison of two nul–terminated strings. Returns:

A negative value if string1 is less than string2.
Zero if string1 is identical to string2.
A positive value if string1 is greater than string2.

Parameters

Input
Name Type Description
string1 const char [] A nul–terminated string.
string2 const char [] A nul–terminated string.
maxChars integer The maximum number of characters to compare between the two specified strings.

Return Value

Name Type Description
result integer A negative value if string1 is less than string2.
Zero if string1 is identical to string2.
A positive value if string1 is greater than string2.