wcscpy

Copies a wide-character string.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <wchar.h> 
   
  wchar_t *wcscpy (
     wchar_t         *ws1,
     const wchar_t   *ws2);
  

Parameters

ws1

(OUT) Points to the array into which to copy the string.

ws2

(IN) Points to the string to be copied.

Return Values

Returns ws1.

Remarks

The wcscpy function copies ws2, including the null-terminating wide-character code, to ws1. Copying of overlapping objects is not guaranteed to work properly. See memmove to copy objects that overlap.

See Also