Debian Codegraph @

upstream/debian-unstable/man3/wcscat.3

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