SysTutorials

Linux Manual Pages › Section 3

wcpncpy(3)

wcpncpy – copy a fixed-size string of wide characters, returning a pointer to its end

Synopsis

#include <wchar.h>
wchar_t *wcpncpy(wchar_t *dest, const wchar_t *src, size_t n);

Feature Test Macro Requirements for glibc (see feature_test_macros(7)): wcpncpy():

Since glibc 2.10:
_POSIX_C_SOURCE >= 200809L
Before glibc 2.10:
_GNU_SOURCE

Description

The wcpncpy() function is the wide-character equivalent of the stpncpy(3) function. It copies at most n wide characters from the wide-character string pointed to by src, including the terminating null wide (L’