![]()  | 
![]()  | 
![]()  | 
![]()  | 
![]()  | 
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
Copy wide characters from one buffer to another
#include <wchar.h>
wchar_t * wmemcpy( wchar_t * ws1,
                   const wchar_t * ws2,
                   size_t n );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The wmemcpy() function copies n wide characters from the buffer pointed to by ws2 into the buffer pointed to by ws1.
The wmemcpy() function is locale-independent and treats all wchar_t values identically, even if they're null or invalid characters.
![]()  | 
Copying overlapping buffers isn't guaranteed to work; use wmemmove() to copy buffers that overlap. | 
A pointer to the destination buffer (i.e the same pointer as ws1).
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | Yes | 
| Signal handler | Yes | 
| Thread | Yes | 
memccpy(), memcmp(), memcpy(), memicmp(), memmove(), memset() wcscpy(), wcsncpy(), wmemchr(), wmemcmp(), wmemmove(), wmemset()
![]()  | 
![]()  | 
![]()  | 
![]()  |