wcscpy

Copies the wide-character string wstr_2, including the terminating null character, into wstr_1.

Format

#include  <wchar.h>

wchar_t *wcscpy  (wchar_t *wstr_1, const wchar_t
                 *wstr_2);
Function Variants This function also has variants named _wcscpy32 and _wcscpy64 for use with 32-bit and 64-bit pointer sizes, respectively. See Section 1.8 for more information on using pointer-size-specific functions.

Arguments

wstr_1, wstr_2
Pointers to null-terminated wide-character strings.

Description

This function copies wstr_2 into wstr_1, and stops after copying wstr_2's null character. If copying takes place between two ovelapping strings, the behavior is undefined.

See also wcsncpy in this section.

Return Values
The address of wstr_ 1


Previous Page | Next Page | Table of Contents | Index