]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
2 | .\" | |
89e3ffe9 | 3 | .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA) |
fea681da MK |
4 | .\" This is free documentation; you can redistribute it and/or |
5 | .\" modify it under the terms of the GNU General Public License as | |
6 | .\" published by the Free Software Foundation; either version 2 of | |
7 | .\" the License, or (at your option) any later version. | |
fe382ebf | 8 | .\" %%%LICENSE_END |
fea681da MK |
9 | .\" |
10 | .\" References consulted: | |
11 | .\" GNU glibc-2 source code and manual | |
12 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
008f1ecc | 13 | .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html |
fea681da MK |
14 | .\" ISO/IEC 9899:1999 |
15 | .\" | |
460495ca | 16 | .TH WMEMCPY 3 2015-08-08 "GNU" "Linux Programmer's Manual" |
fea681da MK |
17 | .SH NAME |
18 | wmemcpy \- copy an array of wide-characters | |
19 | .SH SYNOPSIS | |
20 | .nf | |
21 | .B #include <wchar.h> | |
68e4db0a | 22 | .PP |
fea681da MK |
23 | .BI "wchar_t *wmemcpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n ); |
24 | .fi | |
25 | .SH DESCRIPTION | |
60a90ecd MK |
26 | The |
27 | .BR wmemcpy () | |
28 | function is the wide-character equivalent of the | |
29 | .BR memcpy (3) | |
30 | function. | |
35cfd378 MK |
31 | It copies |
32 | .I n | |
33 | wide characters from the array starting at | |
34 | .I src | |
35 | to the array starting at | |
36 | .IR dest . | |
fea681da | 37 | .PP |
60a90ecd MK |
38 | The arrays may not overlap; use |
39 | .BR wmemmove (3) | |
40 | to copy between overlapping | |
fea681da MK |
41 | arrays. |
42 | .PP | |
35cfd378 MK |
43 | The programmer must ensure that there is room for at least |
44 | .I n | |
45 | wide | |
46 | characters at | |
47 | .IR dest . | |
47297adb | 48 | .SH RETURN VALUE |
60a90ecd | 49 | .BR wmemcpy () |
35cfd378 MK |
50 | returns |
51 | .IR dest . | |
851daa08 | 52 | .SH ATTRIBUTES |
a882da7f PH |
53 | For an explanation of the terms used in this section, see |
54 | .BR attributes (7). | |
55 | .TS | |
56 | allbox; | |
57 | lb lb lb | |
58 | l l l. | |
59 | Interface Attribute Value | |
60 | T{ | |
851daa08 | 61 | .BR wmemcpy () |
a882da7f PH |
62 | T} Thread safety MT-Safe |
63 | .TE | |
47297adb | 64 | .SH CONFORMING TO |
9c0de892 | 65 | POSIX.1-2001, POSIX.1-2008, C99. |
47297adb | 66 | .SH SEE ALSO |
fea681da MK |
67 | .BR memcpy (3), |
68 | .BR wcscpy (3), | |
69 | .BR wmemmove (3), | |
70 | .BR wmempcpy (3) |