wcpncpy(3) Library Functions Manual wcpncpy(3) wcpncpy - (libc -lc) #include wchar_t *wcpncpy(size_t n; wchar_t dest[restrict n], const wchar_t *restrict src, size_t n); glibc ( feature_test_macros(7)): wcpncpy(): glibc 2.10: _POSIX_C_SOURCE >= 200809L glibc 2.10: _GNU_SOURCE wcpncpy() stpncpy(3). n src (L'\0') dest. n dest. wcslen(src) n dest L'\0'. wcslen(src) n dest L'\0'. . n dest. wcpncpy() dest + wcsnlen(src, n). attributes(7). +------------+------------------------------------+--------------------+ || | | +------------+------------------------------------+--------------------+ |wcpncpy() | | MT-Safe | +------------+------------------------------------+--------------------+ POSIX.1-2008. stpncpy(3), wcsncpy(3) 3 . . : . 6.18 8 2026 wcpncpy(3)