1wcsncat(3) Library Functions Manual wcsncat(3)
2
3
4
6 wcsncat - concatenate two wide-character strings
7
9 Standard C library (libc, -lc)
10
12 #include <wchar.h>
13
14 wchar_t *wcsncat(wchar_t dest[restrict .n],
15 const wchar_t src[restrict .n],
16 size_t n);
17
19 The wcsncat() function is the wide-character equivalent of the strn‐
20 cat(3) function. It copies at most n wide characters from the wide-
21 character string pointed to by src to the end of the wide-character
22 string pointed to by dest, and adds a terminating null wide character
23 (L'\0').
24
25 The strings may not overlap.
26
27 The programmer must ensure that there is room for at least wc‐
28 slen(dest)+n+1 wide characters at dest.
29
31 wcsncat() returns dest.
32
34 For an explanation of the terms used in this section, see at‐
35 tributes(7).
36
37 ┌────────────────────────────────────────────┬───────────────┬─────────┐
38 │Interface │ Attribute │ Value │
39 ├────────────────────────────────────────────┼───────────────┼─────────┤
40 │wcsncat() │ Thread safety │ MT-Safe │
41 └────────────────────────────────────────────┴───────────────┴─────────┘
42
44 C11, POSIX.1-2008.
45
47 POSIX.1-2001, C99.
48
50 strncat(3), wcscat(3)
51
52
53
54Linux man-pages 6.04 2023-03-30 wcsncat(3)