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 #define _GNU_SOURCE
10 #include <wchar.h>
11
12 wchar_t *wcpcpy(wchar_t *dest, const wchar_t *src);
13
15 The wcpcpy() function is the wide-character equivalent of the stpcpy(3)
16 function. It copies the wide-character string pointed to by src,
17 including the terminating L'\0' character, to the array pointed to by
18 dest.
19
20 The strings may not overlap.
21
22 The programmer must ensure that there is room for at least
23 wcslen(src)+1 wide characters at dest.
24
26 wcpcpy() returns a pointer to the end of the wide-character string
27 dest, that is, a pointer to the terminating L'\0' character.
28
30 This function is a GNU extension.
31
33 strcpy(3), wcscpy(3), feature_test_macros(7)
34
36 This page is part of release 3.22 of the Linux man-pages project. A
37 description of the project, and information about reporting bugs, can
38 be found at http://www.kernel.org/doc/man-pages/.
39
40
41
42GNU 1999-07-25 WCPCPY(3)