1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" References consulted:
9 .\" GNU glibc-2 source code and manual
10 .\" Dinkumware C library reference http://www.dinkumware.com/
11 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
13 .TH WCPCPY 3 2011-10-01 "GNU" "Linux Programmer's Manual"
15 wcpcpy \- copy a wide-character string, returning a pointer to its end
20 .BI "wchar_t *wcpcpy(wchar_t *" dest ", const wchar_t *" src );
24 Feature Test Macro Requirements for glibc (see
25 .BR feature_test_macros (7)):
34 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
44 function is the wide-character equivalent of the
47 It copies the wide-character string pointed to by \fIsrc\fP,
48 including the terminating null wide character (L\(aq\\0\(aq),cw
49 to the array pointed to by
52 The strings may not overlap.
54 The programmer must ensure that there
55 is room for at least \fIwcslen(src)+1\fP
56 wide characters at \fIdest\fP.
59 returns a pointer to the end of the wide-character string
60 \fIdest\fP, that is, a pointer to the terminating null wide character.