Debian Codegraph @

upstream/debian-trixie/man3/wcsncat.3

raw
1 '\" t
2 .\" Copyright (c) Bruno Haible <[email protected]>
3 .\"
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .\"
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
10 .\" ISO/IEC 9899:1999
11 .\"
12 .TH wcsncat 3 2024-06-15 "Linux man-pages 6.9.1"
13 .SH NAME
14 wcsncat \- concatenate two wide-character strings
15 .SH LIBRARY
16 Standard C library
17 .RI ( libc ", " \-lc )
18 .SH SYNOPSIS
19 .nf
20 .B #include <wchar.h>
21 .P
22 .BI "wchar_t *wcsncat(wchar_t " dest "[restrict ." n ],
23 .BI " const wchar_t " src "[restrict ." n ],
24 .BI " size_t " n );
25 .fi
26 .SH DESCRIPTION
27 The
28 .BR wcsncat ()
29 function is the wide-character equivalent of the
30 .BR strncat (3)
31 function.
32 It copies at most
33 .I n
34 wide characters from the wide-character
35 string pointed to by
36 .I src
37 to the end of the wide-character string pointed
38 to by
39 .IR dest ,
40 and adds a terminating null wide character (L\[aq]\[rs]0\[aq]).
41 .P
42 The strings may not overlap.
43 .P
44 The programmer must ensure that there is room for at least
45 .IR wcslen(dest) + n +1
46 wide characters at
47 .IR dest .
48 .SH RETURN VALUE
49 .BR wcsncat ()
50 returns
51 .IR dest .
52 .SH ATTRIBUTES
53 For an explanation of the terms used in this section, see
54 .BR attributes (7).
55 .TS
56 allbox;
57 lbx lb lb
58 l l l.
59 Interface Attribute Value
60 T{
61 .na
62 .nh
63 .BR wcsncat ()
64 T} Thread safety MT-Safe
65 .TE
66 .SH STANDARDS
67 C11, POSIX.1-2008.
68 .SH HISTORY
69 POSIX.1-2001, C99.
70 .SH SEE ALSO
71 .BR strncat (3),
72 .BR wcscat (3)