1WCSCPY(3P)                 POSIX Programmer's Manual                WCSCPY(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       wcpcpy, wcscpy — copy a wide-character string, returning a  pointer  to
14       its end
15

SYNOPSIS

17       #include <wchar.h>
18
19       wchar_t *wcpcpy(wchar_t *restrict ws1, const wchar_t *restrict ws2);
20       wchar_t *wcscpy(wchar_t *restrict ws1, const wchar_t *restrict ws2);
21

DESCRIPTION

23       For  wcscpy():  The  functionality  described on this reference page is
24       aligned with the ISO C standard. Any conflict between the  requirements
25       described  here and the ISO C standard is unintentional. This volume of
26       POSIX.1‐2008 defers to the ISO C standard.
27
28       The wcpcpy() and  wcscpy()  functions  shall  copy  the  wide-character
29       string pointed to by ws2 (including the terminating null wide-character
30       code) into the array pointed to by ws1.
31
32       The  application  shall  ensure  that  there  is  room  for  at   least
33       wcslen(ws2)+1  wide  characters  in the ws1 array, and that the ws2 and
34       ws1 arrays do not overlap.
35
36       If copying takes place between objects that overlap,  the  behavior  is
37       undefined.
38

RETURN VALUE

40       The  wcpcpy()  function  shall return a pointer to the terminating null
41       wide-character code copied into the ws1 buffer.
42
43       The wcscpy() function shall return ws1.
44
45       No return values are reserved to indicate an error.
46

ERRORS

48       No errors are defined.
49
50       The following sections are informative.
51

EXAMPLES

53       None.
54

APPLICATION USAGE

56       None.
57

RATIONALE

59       None.
60

FUTURE DIRECTIONS

62       None.
63

SEE ALSO

65       strcpy(), wcsdup(), wcsncpy()
66
67       The Base Definitions volume of POSIX.1‐2008, <wchar.h>
68
70       Portions of this text are reprinted and reproduced in  electronic  form
71       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
72       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
73       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
74       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
75       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) In the
76       event of any discrepancy between this version and the original IEEE and
77       The  Open Group Standard, the original IEEE and The Open Group Standard
78       is the referee document. The original Standard can be  obtained  online
79       at http://www.unix.org/online.html .
80
81       Any  typographical  or  formatting  errors that appear in this page are
82       most likely to have been introduced during the conversion of the source
83       files  to  man page format. To report such errors, see https://www.ker
84       nel.org/doc/man-pages/reporting_bugs.html .
85
86
87
88IEEE/The Open Group                  2013                           WCSCPY(3P)
Impressum