]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/wmemcpy.3
fuse.4: ffix
[thirdparty/man-pages.git] / man3 / wmemcpy.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
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.
8 .\" %%%LICENSE_END
9 .\"
10 .\" References consulted:
11 .\" GNU glibc-2 source code and manual
12 .\" Dinkumware C library reference http://www.dinkumware.com/
13 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
14 .\" ISO/IEC 9899:1999
15 .\"
16 .TH WMEMCPY 3 2015-08-08 "GNU" "Linux Programmer's Manual"
17 .SH NAME
18 wmemcpy \- copy an array of wide-characters
19 .SH SYNOPSIS
20 .nf
21 .B #include <wchar.h>
22 .sp
23 .BI "wchar_t *wmemcpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
24 .fi
25 .SH DESCRIPTION
26 The
27 .BR wmemcpy ()
28 function is the wide-character equivalent of the
29 .BR memcpy (3)
30 function.
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 .
37 .PP
38 The arrays may not overlap; use
39 .BR wmemmove (3)
40 to copy between overlapping
41 arrays.
42 .PP
43 The programmer must ensure that there is room for at least
44 .I n
45 wide
46 characters at
47 .IR dest .
48 .SH RETURN VALUE
49 .BR wmemcpy ()
50 returns
51 .IR dest .
52 .SH ATTRIBUTES
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{
61 .BR wmemcpy ()
62 T} Thread safety MT-Safe
63 .TE
64 .SH CONFORMING TO
65 POSIX.1-2001, POSIX.1-2008, C99.
66 .SH SEE ALSO
67 .BR memcpy (3),
68 .BR wcscpy (3),
69 .BR wmemmove (3),
70 .BR wmempcpy (3)