1WCSNCPY(3)                 Linux Programmer's Manual                WCSNCPY(3)
2
3
4

NAME

6       wcsncpy - copy a fixed-size string of wide characters
7

SYNOPSIS

9       #include <wchar.h>
10
11       wchar_t *wcsncpy(wchar_t *dest, const wchar_t *src, size_t n);
12

DESCRIPTION

14       The   wcsncpy()  function  is  the  wide-character  equivalent  of  the
15       strncpy(3) function.  It copies at most  n  wide  characters  from  the
16       wide-character string pointed to by src, including the terminating null
17       wide character (L'\0'), to the array pointed to  by  dest.   Exactly  n
18       wide  characters  are  written  at  dest.  If the length wcslen(src) is
19       smaller than n, the remaining wide characters in the array  pointed  to
20       by   dest  are  filled  with  null  wide  characters.   If  the  length
21       wcslen(src) is greater or equal to n, the string  pointed  to  by  dest
22       will not be terminated by a null wide character.
23
24       The strings may not overlap.
25
26       The programmer must ensure that there is room for at least n wide char‐
27       acters at dest.
28

RETURN VALUE

30       wcsncpy() returns dest.
31

CONFORMING TO

33       C99.
34

SEE ALSO

36       strncpy(3)
37

COLOPHON

39       This page is part of release 3.53 of the Linux  man-pages  project.   A
40       description  of  the project, and information about reporting bugs, can
41       be found at http://www.kernel.org/doc/man-pages/.
42
43
44
45GNU                               2011-09-28                        WCSNCPY(3)
Impressum