1wcpcpy(3) Library Functions Manual wcpcpy(3)
2
3
4
6 wcpcpy - copy a wide-character string, returning a pointer to its end
7
9 Standard C library (libc, -lc)
10
12 #include <wchar.h>
13
14 wchar_t *wcpcpy(wchar_t *restrict dest, const wchar_t *restrict src);
15
16 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
17
18 wcpcpy():
19 Since glibc 2.10:
20 _POSIX_C_SOURCE >= 200809L
21 Before glibc 2.10:
22 _GNU_SOURCE
23
25 The wcpcpy() function is the wide-character equivalent of the stpcpy(3)
26 function. It copies the wide-character string pointed to by src, in‐
27 cluding the terminating null wide character (L'\0'), to the array
28 pointed to by dest.
29
30 The strings may not overlap.
31
32 The programmer must ensure that there is room for at least wc‐
33 slen(src)+1 wide characters at dest.
34
36 wcpcpy() returns a pointer to the end of the wide-character string
37 dest, that is, a pointer to the terminating null wide character.
38
40 For an explanation of the terms used in this section, see at‐
41 tributes(7).
42
43 ┌────────────────────────────────────────────┬───────────────┬─────────┐
44 │Interface │ Attribute │ Value │
45 ├────────────────────────────────────────────┼───────────────┼─────────┤
46 │wcpcpy() │ Thread safety │ MT-Safe │
47 └────────────────────────────────────────────┴───────────────┴─────────┘
48
50 POSIX.1-2008.
51
53 strcpy(3), wcscpy(3)
54
55
56
57Linux man-pages 6.05 2023-07-20 wcpcpy(3)