[Previous] [Contents] [Next]

wcscpy()

Copy a string

Synopsis:

#include <wchar.h>

wchar_t * wcscpy( wchar_t * ws1,
                  const char * ws2 );

Library:

libc

Description:

The wcscpy() function copies the string pointed to by ws2, including the terminating NUL wide character, into the array pointed to by ws1.


Note: Because these functions aren't guaranteed to work properly for copying overlapping strings, use the wmemmove() function instead.

Returns:

A pointer to ws1.

Classification:

ANSI

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

See also:

"String manipulation functions" and "Wide-character functions" in the summary of functions chapter.


[Previous] [Contents] [Next]