cpp/string/wide/wcsncmp

Compares at most wide characters of two null-terminated wide strings. The comparison is done lexicographically.

The sign of the result is the sign of the difference between the values of the first pair of wide characters that differ in the strings being compared.

The behavior is undefined if or  are not pointers to null-terminated strings.

Return value
Negative value if appears before  in lexicographical order.

Zero if and  compare equal.

Positive value if appears after  in lexicographical order.