|WCSCAT(3)||Library Functions Manual||WCSCAT(3)|
— concatenate wide strings
* restrict s, const
wchar_t * restrict append);
wcsncat(wchar_t * restrict s,
const wchar_t * restrict append,
wcsncat() functions append a copy of the wide
string append to the end of the wide string
s, then add a terminating null wide character (L'\0').
The wide string s must have sufficient space to hold
function appends not more than count wide characters
where space for the terminating null wide character should not be included
wcsncat() functions return the pointer
wcsncat() functions conform to
ISO/IEC 9899:1999 (“ISO C99”)
and were first introduced in ISO/IEC 9899/AMD1:1995
(“ISO C90, Amendment 1”).
wcsncat() functions were ported from
NetBSD and first appeared in
Using the functions
wcsncat() is very error-prone with respect to buffer
overflows; see the EXAMPLES section in
strcat(3) for correct usage.
Using wcslcat(3) is a better
choice in most cases.
|June 5, 2013||OpenBSD-5.9|