The wcscpy() function is defined in cwchar.h header file. The wcscpy() function is used to copy a wide character string from source to destination.
wchar_t *wcscpy(wchar_t *dest, const wchar_t *src);
Parameters: This method accepts the following two parameters:
- dest: specifies the pointer to the destination array.
- src: specifies the pointer to the source array.
Return Value: The wcscpy() function returns the modified destination.
Below program illustrate the above function:-
Source: A computer science portal for geeks Destination: After modification, destination: A computer science portal for geeks
Rated as one of the most sought after skills in the industry, own the basics of coding with our C++ STL Course and master the very concepts by intense problem-solving.