1wmemcpy(3)                 Library Functions Manual                 wmemcpy(3)
2
3
4

NAME

6       wmemcpy - copy an array of wide-characters
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <wchar.h>
13
14       wchar_t *wmemcpy(wchar_t dest[restrict .n],
15                        const wchar_t src[restrict .n],
16                        size_t n);
17

DESCRIPTION

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

RETURN VALUE

30       wmemcpy() returns dest.
31

ATTRIBUTES

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

STANDARDS

43       C11, POSIX.1-2008.
44

HISTORY

46       POSIX.1-2001, C99.
47

SEE ALSO

49       memcpy(3), wcscpy(3), wmemmove(3), wmempcpy(3)
50
51
52
53Linux man-pages 6.04              2023-03-30                        wmemcpy(3)
Impressum