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 | int | The maximum number of characters to compare between the two specified strings. |
Return Value
| Name | Type | Description |
| result | int | 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. |
Additional Information
Library: Programmer's Toolbox
Include file: toolbox\toolbox.h
LabWindows/CVI compatibility: LabWindows/CVI 6.0 and later