1WCSCPY(3) Linux Programmer's Manual WCSCPY(3)
2
3
4
6 wcscpy - copy a wide-character string
7
9 #include <wchar.h>
10
11 wchar_t *wcscpy(wchar_t *dest, const wchar_t *src);
12
14 The wcscpy() function is the wide-character equivalent of the strcpy(3)
15 function. It copies the wide-character string pointed to by src,
16 including the terminating null wide character (L'\0'), to the array
17 pointed to by dest.
18
19 The strings may not overlap.
20
21 The programmer must ensure that there is room for at least
22 wcslen(src)+1 wide characters at dest.
23
25 wcscpy() returns dest.
26
28 For an explanation of the terms used in this section, see
29 attributes(7).
30
31 ┌──────────┬───────────────┬─────────┐
32 │Interface │ Attribute │ Value │
33 ├──────────┼───────────────┼─────────┤
34 │wcscpy() │ Thread safety │ MT-Safe │
35 └──────────┴───────────────┴─────────┘
37 POSIX.1-2001, POSIX.1-2008, C99.
38
40 strcpy(3), wcpcpy(3), wcscat(3), wcsdup(3), wmemcpy(3)
41
43 This page is part of release 4.15 of the Linux man-pages project. A
44 description of the project, information about reporting bugs, and the
45 latest version of this page, can be found at
46 https://www.kernel.org/doc/man-pages/.
47
48
49
50GNU 2015-08-08 WCSCPY(3)