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 *restrict dest, const wchar_t *restrict 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,  in‐
24       cluding  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  wc‐
30       slen(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  at‐
38       tributes(7).
39
40       ┌────────────────────────────────────────────┬───────────────┬─────────┐
41Interface                                   Attribute     Value   
42       ├────────────────────────────────────────────┼───────────────┼─────────┤
43wcpcpy()                                    │ Thread safety │ MT-Safe │
44       └────────────────────────────────────────────┴───────────────┴─────────┘
45

CONFORMING TO

47       POSIX.1-2008.
48

SEE ALSO

50       strcpy(3), wcscpy(3)
51

COLOPHON

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