1WMEMCMP(3P)                POSIX Programmer's Manual               WMEMCMP(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       wmemcmp — compare wide characters in memory
14

SYNOPSIS

16       #include <wchar.h>
17
18       int wmemcmp(const wchar_t *ws1, const wchar_t *ws2, size_t n);
19

DESCRIPTION

21       The functionality described on this reference page is aligned with  the
22       ISO C  standard.  Any  conflict between the requirements described here
23       and the ISO C standard is unintentional. This  volume  of  POSIX.1‐2008
24       defers to the ISO C standard.
25
26       The wmemcmp() function shall compare the first n wide characters of the
27       object pointed to by ws1 to the first n wide characters of  the  object
28       pointed  to  by ws2.  This function shall not be affected by locale and
29       all wchar_t values shall be treated identically. The null wide  charac‐
30       ter  and wchar_t values not corresponding to valid characters shall not
31       be treated specially.
32
33       If n is zero, the application shall ensure that ws1 and ws2  are  valid
34       pointers,  and  the function shall behave as if the two objects compare
35       equal.
36

RETURN VALUE

38       The wmemcmp() function shall return an integer greater than, equal  to,
39       or  less  than  zero,  respectively, as the object pointed to by ws1 is
40       greater than, equal to, or less than the object pointed to by ws2.
41

ERRORS

43       No errors are defined.
44
45       The following sections are informative.
46

EXAMPLES

48       None.
49

APPLICATION USAGE

51       None.
52

RATIONALE

54       None.
55

FUTURE DIRECTIONS

57       None.
58

SEE ALSO

60       wmemchr(), wmemcpy(), wmemmove(), wmemset()
61
62       The Base Definitions volume of POSIX.1‐2008, <wchar.h>
63
65       Portions of this text are reprinted and reproduced in  electronic  form
66       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
67       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
68       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
69       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
70       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) In the
71       event of any discrepancy between this version and the original IEEE and
72       The  Open Group Standard, the original IEEE and The Open Group Standard
73       is the referee document. The original Standard can be  obtained  online
74       at http://www.unix.org/online.html .
75
76       Any  typographical  or  formatting  errors that appear in this page are
77       most likely to have been introduced during the conversion of the source
78       files  to  man page format. To report such errors, see https://www.ker
79       nel.org/doc/man-pages/reporting_bugs.html .
80
81
82
83IEEE/The Open Group                  2013                          WMEMCMP(3P)
Impressum