1WCPCPY(3)                  Linux Programmer's Manual                 WCPCPY(3)
2
3
4

NAME

6       wcpcpy - copy a wide-character string, returning a pointer to its end
7

SYNOPSIS

9       #include <wchar.h>
10
11       wchar_t *wcpcpy(wchar_t *dest, const wchar_t *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

DESCRIPTION

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,
24       including  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
30       wcslen(src)+1 wide characters at dest.
31

RETURN VALUE

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

ATTRIBUTES

37       For  an  explanation  of  the  terms  used   in   this   section,   see
38       attributes(7).
39
40       ┌──────────┬───────────────┬─────────┐
41Interface Attribute     Value   
42       ├──────────┼───────────────┼─────────┤
43wcpcpy()  │ Thread safety │ MT-Safe │
44       └──────────┴───────────────┴─────────┘

CONFORMING TO

46       POSIX.1-2008.
47

SEE ALSO

49       strcpy(3), wcscpy(3)
50

COLOPHON

52       This  page  is  part of release 5.07 of the Linux man-pages project.  A
53       description of the project, information about reporting bugs,  and  the
54       latest     version     of     this    page,    can    be    found    at
55       https://www.kernel.org/doc/man-pages/.
56
57
58
59GNU                               2019-03-06                         WCPCPY(3)
Impressum