2 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\" References consulted:
7 .\" GNU glibc-2 source code and manual
8 .\" Dinkumware C library reference http://www.dinkumware.com/
9 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
11 .TH wcpncpy 3 (date) "Linux man-pages (unreleased)"
13 wcpncpy \- copy a fixed-size string of wide characters,
14 returning a pointer to its end
17 .RI ( libc ", " \-lc )
22 .BI "wchar_t *wcpncpy(wchar_t " dest "[restrict ." n ],
23 .BI " const wchar_t " src "[restrict ." n ],
28 Feature Test Macro Requirements for glibc (see
29 .BR feature_test_macros (7)):
35 _POSIX_C_SOURCE >= 200809L
42 function is the wide-character equivalent
48 wide characters from the wide-character
51 including the terminating null wide (L\[aq]\e0\[aq]),
52 to the array pointed to by
63 the remaining wide characters in the array pointed to
66 are filled with L\[aq]\e0\[aq] characters.
69 is greater than or equal
72 the string pointed to by
75 not be L\[aq]\e0\[aq] terminated.
77 The strings may not overlap.
79 The programmer must ensure that there is room for at least
86 returns a pointer to the last wide character written, that is,
89 For an explanation of the terms used in this section, see
97 Interface Attribute Value
100 T} Thread safety MT-Safe