| // | |
| // wcscpy.cpp | |
| // | |
| // Copyright (c) Microsoft Corporation. All rights reserved. | |
| // | |
| // Defines wcscpy(), which copies a string from one buffer to another. | |
| // | |
| extern "C" wchar_t* __cdecl wcscpy( | |
| wchar_t* const destination, | |
| wchar_t const* source) | |
| { | |
| memcpy(destination, source, (wcslen(source) + 1) * sizeof(wchar_t)); | |
| return destination; | |
| } | |