Name
stricmp -- compare two strings in a case-insensitive way (V7.0)
Synopsis
int r = stricmp(const char *s1, const char *s2);
Function
Compares s1 and s2 in a case-insensitive way. Both strings must be valid UTF-8 strings which are terminated by a NULL character.

If s1 is less than s2, -1 is returned. If s1 is greater than s2, 1 is returned, otherwise the return value is 0.

Note that this function is mostly useful for checking the equality of two strings in a case-insensitive way. It is not appropriate for sorting because it currently doesn't handle all intricacies of Unicode collation. If you need to compare strings for sorting, please use hw_CompareString() instead. See hw_CompareString for details.

Designer compatibility
Unsupported

Inputs
s1
first string to compare
s2
second string to compare
Results
r
result of comparison (see above)

Show TOC