Debian Codegraph @

upstream/debian-trixie/man3/wcscat.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 wcscat 3 2024-06-15 "Linux man-pages 6.9.1"
13 .SH NAME
14 wcscat \- 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 *wcscat(wchar_t *restrict " dest \
23 ", const wchar_t *restrict " src );
24 .fi
25 .SH DESCRIPTION
26 The
27 .BR wcscat ()
28 function is the wide-character equivalent
29 of the
30 .BR strcat (3)
31 function.
32 It copies the wide-character string pointed to by
33 .IR src ,
34 including the terminating null wide character (L\[aq]\[rs]0\[aq]),
35 to the end of the wide-character string pointed to by
36 .IR dest .
37 .P
38 The strings may not overlap.
39 .P
40 The programmer must ensure that there is room for at least
41 .IR wcslen(dest) + wcslen(src) +1
42 wide characters at
43 .IR dest .
44 .SH RETURN VALUE
45 .BR wcscat ()
46 returns
47 .IR dest .
48 .SH ATTRIBUTES
49 For an explanation of the terms used in this section, see
50 .BR attributes (7).
51 .TS
52 allbox;
53 lbx lb lb
54 l l l.
55 Interface Attribute Value
56 T{
57 .na
58 .nh
59 .BR wcscat ()
60 T} Thread safety MT-Safe
61 .TE
62 .SH STANDARDS
63 C11, POSIX.1-2008.
64 .SH HISTORY
65 POSIX.1-2001, C99.
66 .SH SEE ALSO
67 .BR strcat (3),
68 .BR wcpcpy (3),
69 .BR wcscpy (3),
70 .BR wcsncat (3)