Function CSTL_wstring_compare_n

Source
pub unsafe extern "C" fn CSTL_wstring_compare_n(
    left: *const wchar_t,
    right: *const wchar_t,
    right_count: usize,
) -> c_int
Expand description

Compare an explicit length character sequence with a null-terminated one.

The return value is negative if left compares less than right, positive if it compares greater and zero if left and right compare equal.

To compare an explicit length left and a null-terminated right, swap them and negate the result: -CSTL_wstring_compare_n(right, left, left_count).

There is no CSTL_WideString version of this function as the return value does not allow for reporting out of bounds errors.