]>
Commit | Line | Data |
---|---|---|
a1eaacb1 | 1 | '\" t |
fea681da MK |
2 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
3 | .\" | |
e4a74ca8 | 4 | .\" SPDX-License-Identifier: GPL-2.0-or-later |
fea681da MK |
5 | .\" |
6 | .\" References consulted: | |
7 | .\" GNU glibc-2 source code and manual | |
8 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
008f1ecc | 9 | .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html |
fea681da MK |
10 | .\" ISO/IEC 9899:1999 |
11 | .\" | |
4c1c5274 | 12 | .TH wmemcpy 3 (date) "Linux man-pages (unreleased)" |
fea681da MK |
13 | .SH NAME |
14 | wmemcpy \- copy an array of wide-characters | |
71ab8113 AC |
15 | .SH LIBRARY |
16 | Standard C library | |
8fc3b2cf | 17 | .RI ( libc ", " \-lc ) |
fea681da MK |
18 | .SH SYNOPSIS |
19 | .nf | |
20 | .B #include <wchar.h> | |
68e4db0a | 21 | .PP |
1eed67e7 AC |
22 | .BI "wchar_t *wmemcpy(wchar_t " dest "[restrict ." n ], |
23 | .BI " const wchar_t " src "[restrict ." n ], | |
ac629205 | 24 | .BI " size_t " n ); |
fea681da MK |
25 | .fi |
26 | .SH DESCRIPTION | |
60a90ecd MK |
27 | The |
28 | .BR wmemcpy () | |
29 | function is the wide-character equivalent of the | |
30 | .BR memcpy (3) | |
31 | function. | |
35cfd378 MK |
32 | It copies |
33 | .I n | |
34 | wide characters from the array starting at | |
35 | .I src | |
36 | to the array starting at | |
37 | .IR dest . | |
fea681da | 38 | .PP |
60a90ecd MK |
39 | The arrays may not overlap; use |
40 | .BR wmemmove (3) | |
41 | to copy between overlapping | |
fea681da MK |
42 | arrays. |
43 | .PP | |
35cfd378 MK |
44 | The programmer must ensure that there is room for at least |
45 | .I n | |
46 | wide | |
47 | characters at | |
48 | .IR dest . | |
47297adb | 49 | .SH RETURN VALUE |
60a90ecd | 50 | .BR wmemcpy () |
35cfd378 MK |
51 | returns |
52 | .IR dest . | |
851daa08 | 53 | .SH ATTRIBUTES |
a882da7f PH |
54 | For an explanation of the terms used in this section, see |
55 | .BR attributes (7). | |
56 | .TS | |
57 | allbox; | |
c466875e | 58 | lbx lb lb |
a882da7f PH |
59 | l l l. |
60 | Interface Attribute Value | |
61 | T{ | |
9e54434e BR |
62 | .na |
63 | .nh | |
851daa08 | 64 | .BR wmemcpy () |
a882da7f PH |
65 | T} Thread safety MT-Safe |
66 | .TE | |
c466875e | 67 | .sp 1 |
3113c7f3 | 68 | .SH STANDARDS |
4131356c AC |
69 | C11, POSIX.1-2008. |
70 | .SH HISTORY | |
71 | POSIX.1-2001, C99. | |
47297adb | 72 | .SH SEE ALSO |
fea681da MK |
73 | .BR memcpy (3), |
74 | .BR wcscpy (3), | |
75 | .BR wmemmove (3), | |
76 | .BR wmempcpy (3) |