logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

wcsncat - concatenate two wide-character strings

Attributes

       For an explanation of the terms used in this section, see attributes(7).
       ┌─────────────────────────────────────────────────────────────────────────────┬───────────────┬─────────┐
       │ InterfaceAttributeValue   │
       ├─────────────────────────────────────────────────────────────────────────────┼───────────────┼─────────┤
       │ wcsncat()                                                                   │ Thread safety │ MT-Safe │
       └─────────────────────────────────────────────────────────────────────────────┴───────────────┴─────────┘

Description

       The  wcsncat() function is the wide-character equivalent of the strncat(3) function.  It copies at most n
       wide characters from the wide-character string pointed to by src to the end of the wide-character  string
       pointed to by dest, and adds a terminating null wide character (L'\0').

       The strings may not overlap.

       The programmer must ensure that there is room for at least wcslen(dest)+n+1 wide characters at dest.

History

       POSIX.1-2001, C99.

Library

       Standard C library (libc, -lc)

Name

       wcsncat - concatenate two wide-character strings

Return Value

wcsncat() returns dest.

See Also

strncat(3), wcscat(3)

Linux man-pages 6.9.1                              2024-06-15                                         wcsncat(3)

Standards

       C11, POSIX.1-2008.

Synopsis

#include<wchar.h>wchar_t*wcsncat(wchar_tdest[restrict.n],constwchar_tsrc[restrict.n],size_tn);