Debian Codegraph @

upstream/debian-unstable/man3/wmemcpy.3

raw
1 '\" t
2 .\" Copyright, Bruno Haible <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\"
7 .TH wmemcpy 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 wmemcpy \- copy an array of wide-characters
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .B #include <wchar.h>
16 .P
17 .BR "wchar_t *wmemcpy(" "size_t n;"
18 .BI " wchar_t " dest "[restrict " n ],
19 .BI " const wchar_t " src "[restrict " n ],
20 .BI " size_t " n );
21 .fi
22 .SH DESCRIPTION
23 The
24 .BR wmemcpy ()
25 function is the wide-character equivalent of the
26 .BR memcpy (3)
27 function.
28 It copies
29 .I n
30 wide characters from the array starting at
31 .I src
32 to the array starting at
33 .IR dest .
34 .P
35 The arrays may not overlap;
36 use
37 .BR wmemmove (3)
38 to copy between overlapping arrays.
39 .P
40 The programmer must ensure that there is room for at least
41 .I n
42 wide
43 characters at
44 .IR dest .
45 .SH RETURN VALUE
46 .BR wmemcpy ()
47 returns
48 .IR dest .
49 .SH ATTRIBUTES
50 For an explanation of the terms used in this section, see
51 .BR attributes (7).
52 .TS
53 allbox;
54 lbx lb lb
55 l l l.
56 Interface Attribute Value
57 T{
58 .na
59 .nh
60 .BR wmemcpy ()
61 T} Thread safety MT-Safe
62 .TE
63 .SH STANDARDS
64 C11, POSIX.1-2008.
65 .SH HISTORY
66 POSIX.1-2001, C99.
67 .SH SEE ALSO
68 .BR memcpy (3),
69 .BR wcscpy (3),
70 .BR wmemmove (3),
71 .BR wmempcpy (3)