Manpage of WCPNCPY
WCPNCPYSection: Linux Programmer's Manual (3)
NAMEwcpncpy - copy a fixed-size string of wide characters, returning a pointer to its end
#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)):
- Since glibc 2.10:
- _POSIX_C_SOURCE >= 200809L
- Before glibc 2.10:
DESCRIPTIONThe wcpncpy() function is the wide-character equivalent of the stpncpy(3) function. It copies at most nwide characters from the wide-character string pointed to by src, including the terminating null wide (Laq\0aq), to the array pointed to by dest. Exactly nwide characters are written at dest. If the length wcslen(src)is smaller than n, the remaining wide characters in the array pointed to by destare filled with Laq\0aq characters. If the length wcslen(src)is greater than or equal to n, the string pointed to by destwill not be Laq\0aq terminated.
The strings may not overlap.
RETURN VALUEwcpncpy() returns a pointer to the last wide character written, that is, dest+n-1.
ATTRIBUTESFor an explanation of the terms used in this section, see attributes(7).
SEE ALSOstpncpy(3), wcsncpy(3)
This document was created by man2html, using the manual pages.
Time: 16:30:20 GMT, March 14, 2017 Click Here!