1wmemmove(3C) Standard C Library Functions wmemmove(3C)
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 copies n wide-characters from the object
16 pointed to by ws2 to the object pointed to by ws1. Copying takes place
17 as if the n wide-characters from the object pointed to by ws2 are first
18 copied into a temporary array of n wide-characters that does not over‐
19 lap the objects pointed to by ws1 or ws2, and then the n wide-charac‐
20 ters from the temporary array are copied into the object pointed to by
21 ws1.
22
23
24 This function is not affected by locale and all wchar_t values are
25 treated identically. The null wide-character and wchar_t values not
26 corresponding to valid characters are not treated specially.
27
28
29 If n is 0, ws1 and ws2 must be a valid pointers, and the function
30 copies zero wide-characters.
31
33 The wmemmove() function returns the value of ws1.
34
36 No errors are defined.
37
39 See attributes(5) for descriptions of the following attributes:
40
41
42
43
44 ┌─────────────────────────────┬─────────────────────────────┐
45 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
46 ├─────────────────────────────┼─────────────────────────────┤
47 │Interface Stability │Standard │
48 ├─────────────────────────────┼─────────────────────────────┤
49 │MT-Level │MT-Safe │
50 └─────────────────────────────┴─────────────────────────────┘
51
53 wmemchr(3C), wmemcmp(3C), wmemcpy(3C), wmemset(3C), attributes(5),
54 standards(5)
55
56
57
58SunOS 5.11 14 Aug 2002 wmemmove(3C)