1WCPCPY(3) Linux Programmer's Manual WCPCPY(3)
2
3
4
6 wcpcpy - copy a wide-character string, returning a pointer to its end
7
9 #include <wchar.h>
10
11 wchar_t *wcpcpy(wchar_t *restrict dest, const wchar_t *restrict src);
12
13 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
14
15 wcpcpy():
16 Since glibc 2.10:
17 _POSIX_C_SOURCE >= 200809L
18 Before glibc 2.10:
19 _GNU_SOURCE
20
22 The wcpcpy() function is the wide-character equivalent of the stpcpy(3)
23 function. It copies the wide-character string pointed to by src, in‐
24 cluding the terminating null wide character (L'\0'), to the array
25 pointed to by dest.
26
27 The strings may not overlap.
28
29 The programmer must ensure that there is room for at least wc‐
30 slen(src)+1 wide characters at dest.
31
33 wcpcpy() returns a pointer to the end of the wide-character string
34 dest, that is, a pointer to the terminating null wide character.
35
37 For an explanation of the terms used in this section, see at‐
38 tributes(7).
39
40 ┌────────────────────────────────────────────┬───────────────┬─────────┐
41 │Interface │ Attribute │ Value │
42 ├────────────────────────────────────────────┼───────────────┼─────────┤
43 │wcpcpy() │ Thread safety │ MT-Safe │
44 └────────────────────────────────────────────┴───────────────┴─────────┘
45
47 POSIX.1-2008.
48
50 strcpy(3), wcscpy(3)
51
53 This page is part of release 5.13 of the Linux man-pages project. A
54 description of the project, information about reporting bugs, and the
55 latest version of this page, can be found at
56 https://www.kernel.org/doc/man-pages/.
57
58
59
60GNU 2021-03-22 WCPCPY(3)