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()
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
35
36
37GNU 1999-07-25 WCPCPY(3)