1wmemcmp(3)                 Library Functions Manual                 wmemcmp(3)
2
3
4

NAME

6       wmemcmp - compare two arrays of wide-characters
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <wchar.h>
13
14       int wmemcmp(const wchar_t s1[.n], const wchar_t s2[.n], size_t n);
15

DESCRIPTION

17       The  wmemcmp()  function  is  the wide-character equivalent of the mem‐
18       cmp(3) function.  It compares the n wide-characters starting at s1  and
19       the n wide-characters starting at s2.
20

RETURN VALUE

22       The  wmemcmp()  function  returns  zero if the wide-character arrays of
23       size n at s1 and s2 are equal.  It returns an integer greater than zero
24       if  at  the first differing position i (i < n), the corresponding wide-
25       character s1[i] is greater than s2[i].  It returns an integer less than
26       zero  if  at  the first differing position i (i < n), the corresponding
27       wide-character s1[i] is less than s2[i].
28

ATTRIBUTES

30       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
31       tributes(7).
32
33       ┌────────────────────────────────────────────┬───────────────┬─────────┐
34Interface                                   Attribute     Value   
35       ├────────────────────────────────────────────┼───────────────┼─────────┤
36wmemcmp()                                   │ Thread safety │ MT-Safe │
37       └────────────────────────────────────────────┴───────────────┴─────────┘
38

STANDARDS

40       C11, POSIX.1-2008.
41

HISTORY

43       POSIX.1-2001, C99.
44

SEE ALSO

46       memcmp(3), wcscmp(3)
47
48
49
50Linux man-pages 6.04              2023-03-30                        wmemcmp(3)
Impressum