1WMEMCMP(3P) POSIX Programmer's Manual WMEMCMP(3P)
2
3
4
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
12 wmemcmp - compare wide characters in memory
13
15 #include <wchar.h>
16
17 int wmemcmp(const wchar_t *ws1, const wchar_t *ws2, size_t n);
18
19
21 The wmemcmp() function shall compare the first n wide characters of the
22 object pointed to by ws1 to the first n wide characters of the object
23 pointed to by ws2. This function shall not be affected by locale and
24 all wchar_t values shall be treated identically. The null wide charac‐
25 ter and wchar_t values not corresponding to valid characters shall not
26 be treated specially.
27
28 If n is zero, the application shall ensure that ws1 and ws2 are valid
29 pointers, and the function shall behave as if the two objects compare
30 equal.
31
33 The wmemcmp() function shall return an integer greater than, equal to,
34 or less than zero, respectively, as the object pointed to by ws1 is
35 greater than, equal to, or less than the object pointed to by ws2.
36
38 No errors are defined.
39
40 The following sections are informative.
41
43 None.
44
46 None.
47
49 None.
50
52 None.
53
55 wmemchr(), wmemcpy(), wmemmove(), wmemset(), the Base Definitions vol‐
56 ume of IEEE Std 1003.1-2001, <wchar.h>
57
59 Portions of this text are reprinted and reproduced in electronic form
60 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
61 -- Portable Operating System Interface (POSIX), The Open Group Base
62 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
63 Electrical and Electronics Engineers, Inc and The Open Group. In the
64 event of any discrepancy between this version and the original IEEE and
65 The Open Group Standard, the original IEEE and The Open Group Standard
66 is the referee document. The original Standard can be obtained online
67 at http://www.opengroup.org/unix/online.html .
68
69
70
71IEEE/The Open Group 2003 WMEMCMP(3P)