Name
hw_CompareString -- compare two strings (V7.0)
Synopsis
int r = hw_CompareString(STRPTR s1, STRPTR s2, ULONG flags,
                           struct hwTagList *tags);
Function
This function compares s1 and s2 and returns how the two strings are related. If s1 is less than s2, -1 is returned. If s1 is greater than s2, 1 is returned, otherwise, i.e. if the strings are equal, the return value is 0.

The flags parameter can be set to a combination of the following flags:

HWCMPSTR_IGNORECASE:
If this flag is set, hw_CompareString() will compare the two strings in a case-insensitive manner.

Designer compatibility
Unsupported

Inputs
s1
first string
s2
second string
flags
options for the comparison (see above)
tags
currently unused; pass NULL
Results
r
relation of the two strings (see above)

Show TOC