unincmp
Compares a specified number of characters of two Unicode strings
#include <unicode.h> N_EXTERN_LIBRARY(nint) unincmp ( const unicode N_FAR *s1, const unicode N_FAR *s2, size_t len);
uses netwin32 Function unincmp (s1 : const unicode; s2 : const unicode; len : size_t ) : nint;
One of the following values:
< 0 if s1 is less than s2
= 0 if s1 is equal to s2
> 0 if s1 is greater than s2
unincmp compares s1 to s2, for a maximum length of n characters, starting with the first character in each string and continuing with subsequent characters until (1) the corresponding characters differ or (2) the end of the strings is reached. The comparison is done lexicographically, using the value of the unicode character not the collation weight.
unincmp is useful for comparing strings for equality. Do not call unincmp for sorting strings into collation order.
unincmp corresponds to the C strncmp function.
For sample code, see Section 3.19, Example: unincmp.