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

NAME

6       wmemcpy - copy an array of wide-characters
7

SYNOPSIS

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

DESCRIPTION

15       The  wmemcpy()  function  is  the wide-character equivalent of the mem‐
16       cpy(3) function.  It copies n wide characters from the  array  starting
17       at src to the array starting at dest.
18
19       The arrays may not overlap; use wmemmove(3) to copy between overlapping
20       arrays.
21
22       The programmer must ensure that there is room for at least n wide char‐
23       acters at dest.
24

RETURN VALUE

26       wmemcpy() returns dest.
27

ATTRIBUTES

29       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
30       tributes(7).
31
32       ┌────────────────────────────────────────────┬───────────────┬─────────┐
33Interface                                   Attribute     Value   
34       ├────────────────────────────────────────────┼───────────────┼─────────┤
35wmemcpy()                                   │ Thread safety │ MT-Safe │
36       └────────────────────────────────────────────┴───────────────┴─────────┘
37

CONFORMING TO

39       POSIX.1-2001, POSIX.1-2008, C99.
40

SEE ALSO

42       memcpy(3), wcscpy(3), wmemmove(3), wmempcpy(3)
43

COLOPHON

45       This page is part of release 5.12 of the Linux  man-pages  project.   A
46       description  of  the project, information about reporting bugs, and the
47       latest    version    of    this    page,    can     be     found     at
48       https://www.kernel.org/doc/man-pages/.
49
50
51
52GNU                               2021-03-22                        WMEMCPY(3)
Impressum