1WMEMMOVE(P) POSIX Programmer's Manual WMEMMOVE(P)
2
3
4
6 wmemmove - copy wide characters in memory with overlapping areas
7
9 #include <wchar.h>
10
11 wchar_t *wmemmove(wchar_t *ws1, const wchar_t *ws2, size_t n);
12
13
15 The wmemmove() function shall copy n wide characters from the object
16 pointed to by ws2 to the object pointed to by ws1. Copying shall take
17 place as if the n wide characters from the object pointed to by ws2 are
18 first copied into a temporary array of n wide characters that does not
19 overlap the objects pointed to by ws1 or ws2, and then the n wide char‐
20 acters from the temporary array are copied into the object pointed to
21 by ws1.
22
23 This function shall not be affected by locale and all wchar_t values
24 shall be treated identically. The null wide character and wchar_t val‐
25 ues not corresponding to valid characters shall not be treated spe‐
26 cially.
27
28 If n is zero, the application shall ensure that ws1 and ws2 are valid
29 pointers, and the function shall copy zero wide characters.
30
32 The wmemmove() function shall return the value of ws1.
33
35 No errors are defined
36
37 The following sections are informative.
38
40 None.
41
43 None.
44
46 None.
47
49 None.
50
52 wmemchr() , wmemcmp() , wmemcpy() , wmemset() , the Base Definitions
53 volume of IEEE Std 1003.1-2001, <wchar.h>
54
56 Portions of this text are reprinted and reproduced in electronic form
57 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
58 -- Portable Operating System Interface (POSIX), The Open Group Base
59 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
60 Electrical and Electronics Engineers, Inc and The Open Group. In the
61 event of any discrepancy between this version and the original IEEE and
62 The Open Group Standard, the original IEEE and The Open Group Standard
63 is the referee document. The original Standard can be obtained online
64 at http://www.opengroup.org/unix/online.html .
65
66
67
68IEEE/The Open Group 2003 WMEMMOVE(P)