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
12 .TH wcsncpy 3 (date) "Linux man-pages (unreleased)"
14 wcsncpy \- copy a fixed-size string of wide characters
17 .RI ( libc ", " \-lc )
22 .BI "wchar_t *wcsncpy(wchar_t " dest "[restrict ." n ],
23 .BI " const wchar_t " src "[restrict ." n ],
29 function is the wide-character equivalent of the
34 wide characters from the wide-character
37 including the terminating null wide character (L\[aq]\e0\[aq]),
38 to the array pointed to by
45 If the length \fIwcslen(src)\fP is smaller than
47 the remaining wide characters in the array
51 with null wide characters.
52 If the length \fIwcslen(src)\fP is greater than or equal
55 the string pointed to by
57 will not be terminated by a null wide character.
59 The strings may not overlap.
61 The programmer must ensure that there is room for at least
71 For an explanation of the terms used in this section, see
77 Interface Attribute Value
82 T} Thread safety MT-Safe