]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/wmemcpy.3
man*/: ffix (un-bracket tables)
[thirdparty/man-pages.git] / man3 / wmemcpy.3
CommitLineData
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
14wmemcpy \- copy an array of wide-characters
71ab8113
AC
15.SH LIBRARY
16Standard 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
27The
28.BR wmemcpy ()
29function is the wide-character equivalent of the
30.BR memcpy (3)
31function.
35cfd378
MK
32It copies
33.I n
34wide characters from the array starting at
35.I src
36to the array starting at
37.IR dest .
fea681da 38.PP
60a90ecd
MK
39The arrays may not overlap; use
40.BR wmemmove (3)
41to copy between overlapping
fea681da
MK
42arrays.
43.PP
35cfd378
MK
44The programmer must ensure that there is room for at least
45.I n
46wide
47characters at
48.IR dest .
47297adb 49.SH RETURN VALUE
60a90ecd 50.BR wmemcpy ()
35cfd378
MK
51returns
52.IR dest .
851daa08 53.SH ATTRIBUTES
a882da7f
PH
54For an explanation of the terms used in this section, see
55.BR attributes (7).
56.TS
57allbox;
c466875e 58lbx lb lb
a882da7f
PH
59l l l.
60Interface Attribute Value
61T{
9e54434e
BR
62.na
63.nh
851daa08 64.BR wmemcpy ()
a882da7f
PH
65T} Thread safety MT-Safe
66.TE
c466875e 67.sp 1
3113c7f3 68.SH STANDARDS
4131356c
AC
69C11, POSIX.1-2008.
70.SH HISTORY
71POSIX.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)