codekingpro's picture
Add files using upload-large-folder tool
90219c5 verified
Raw
History Blame Contribute Delete
601 Bytes
//
// wcscpy.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Defines wcscpy(), which copies a string from one buffer to another.
//
#include <string.h>
#if defined _M_X64 || defined _M_IX86 || defined _M_ARM || defined _M_ARM64
#pragma warning(disable:4163)
#pragma function(wcscpy)
#endif
#pragma function(memcpy, wcslen)
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;
}