HELPLIB.HLB  —  CRTL  wmemcmp
    Compares two arrays of wide characters.

    Format

      #include  <wchar.h>

      int wmemcmp  (const wchar_t *s1, const wchar_t *s2, size_t n);

1  –  Arguments

 s1, s2

    Pointers to wide-character arrays.

 n

    The maximum number of wide characters to be compared.

2  –  Description

    The wmemcmp function compares the first n wide characters of
    the array pointed to by s1 with the first n wide characters of
    the array pointed to by s2. The wide characters are compared not
    according to locale-dependent collation rules, but as integral
    objects of type wchar_t.

3  –  Return Values

    0                  Arrays are equal.
    Positive value     The first array is greater than the second.
    Negative value     The first array is less than the second.
Close Help