1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .\" References consulted:
6 .\" GNU glibc-2 source code and manual
7 .\" Dinkumware C library reference http://www.dinkumware.com/
8 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
10 .TH WCPCPY 3 2021-03-22 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
12 wcpcpy \- copy a wide-character string, returning a pointer to its end
15 .RI ( libc ", " \-lc )
20 .BI "wchar_t *wcpcpy(wchar_t *restrict " dest \
21 ", const wchar_t *restrict " src );
25 Feature Test Macro Requirements for glibc (see
26 .BR feature_test_macros (7)):
32 _POSIX_C_SOURCE >= 200809L
39 function is the wide-character equivalent of the
42 It copies the wide-character string pointed to by
44 including the terminating null wide character (L\(aq\e0\(aq),
45 to the array pointed to by
48 The strings may not overlap.
50 The programmer must ensure that there
57 returns a pointer to the end of the wide-character string
59 that is, a pointer to the terminating null wide character.
61 For an explanation of the terms used in this section, see
69 Interface Attribute Value
72 T} Thread safety MT-Safe