ReactOS 0.4.16-dev-927-g467dec4
wcscpy.cpp
Go to the documentation of this file.
1//
2// wcscpy.cpp
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// Defines wcscpy(), which copies a string from one buffer to another.
7//
8#include <string.h>
9
10
11
12#if defined _M_X64 || defined _M_IX86 || defined _M_ARM || defined _M_ARM64
13 #pragma warning(disable:4163)
14 #pragma function(wcscpy)
15#endif
16
17
18
19extern "C" wchar_t* __cdecl wcscpy(
20 wchar_t* const destination,
21 wchar_t const* source)
22{
23 wchar_t* destination_it = destination;
24 while ((*destination_it++ = *source++) != '\0') { }
25
26 return destination;
27}
#define __cdecl
Definition: accygwin.h:79
wcscpy