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
- quick_exit() function in C++ with Examples
- wcslen() function in C++ with Examples
- norm() function in C++ with Examples
- conj() function in C++ with Examples
- wcsspn() function in C/C++ with Examples
- wcscmp() function in C++ with Examples
- btowc() function in C/C++ with Examples
- not1 and not2 function templates in C++ STL with Examples
- Function Overloading vs Function Overriding in C++
- What happens when a virtual function is called inside a non-virtual function in C++
- wmemset() in C/C++ with Examples
- std::mismatch() with examples in C++
- set_symmetric_difference in C++ with Examples
- ratio_equal() in C++ with examples
- cauchy_distribution a() in C++ with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.