1wmemcmp(3C)              Standard C Library Functions              wmemcmp(3C)
2
3
4

NAME

6       wmemcmp - compare wide-characters in memory
7

SYNOPSIS

9       #include <wchar.h>
10
11       int wmemcmp(const wchar_t *ws1, const wchar_t *ws2, size_t n);
12
13

DESCRIPTION

15       The  wmemcmp()  function  compares  the  first n wide-characters of the
16       object pointed to by ws1 to the first n wide-characters of  the  object
17       pointed  to  by  ws2.  This  function is not affected by locale and all
18       wchar_t values are treated identically.  The null   wide-character  and
19       wchar_t  values  not corresponding to valid  characters are not treated
20       specially.
21
22
23       If n is zero,  ws1 and ws2 must be a valid pointers  and  the  function
24       behaves as if the two objects compare equal.
25

RETURN VALUES

27       The  wmemcmp()  function  returns an integer greater than, equal to, or
28       less than 0, accordingly as the object pointed to  by  ws1  is  greater
29       than, equal to, or less than the object pointed to by ws2.
30

ERRORS

32       No errors are defined.
33

ATTRIBUTES

35       See attributes(5) for descriptions of the following attributes:
36
37
38
39
40       ┌─────────────────────────────┬─────────────────────────────┐
41       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
42       ├─────────────────────────────┼─────────────────────────────┤
43       │Interface Stability          │Standard                     │
44       ├─────────────────────────────┼─────────────────────────────┤
45       │MT-Level                     │MT-Safe                      │
46       └─────────────────────────────┴─────────────────────────────┘
47

SEE ALSO

49       wmemchr(3C),  wmemcpy(3C),  wmemmove(3C),  wmemset(3C),  attributes(5),
50       standards(5)
51
52
53
54SunOS 5.11                        14 Aug 2002                      wmemcmp(3C)
Impressum