##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::wcscpy

From cppreference.com
< cpp‎ | string‎ | wide

Defined in header `<cwchar>` |  |
wchar_t *wcscpy( wchar_t *dest, const wchar_t *src ); |  |

Copies the wide string pointed to by `src` (including the terminating null wide character) to wide character array pointed to by `dest`.

If the strings overlap, the behavior is undefined.

### [edit] Parameters

dest | - | pointer to the wide character array to copy to
src | - | pointer to the null-terminated wide string to copy from

### [edit] Return value

`dest`

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

wcsncpy | copies a certain amount of wide characters from one string to another (function) [edit]
wmemcpy | copies a certain amount of wide characters between two non-overlapping arrays (function) [edit]
C documentation for wcscpy

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/string/wide/wcscpy&oldid=59119"
Category:

- Todo no example