mirror of
https://github.com/reactos/reactos.git
synced 2026-06-20 11:32:15 +08:00
[UCRT] Import Microsoft.Windows.SDK.CRTSource version 10.0.22621.3
Imported from https://www.nuget.org/packages/Microsoft.Windows.SDK.CRTSource/10.0.22621.3 License: MIT
This commit is contained in:
29
sdk/lib/ucrt/string/wcsset.cpp
Normal file
29
sdk/lib/ucrt/string/wcsset.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// wcsset.cpp
|
||||
//
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// Defines _wcsset(), which sets all of the characters in a wide character
|
||||
// string to the given value.
|
||||
//
|
||||
#include <string.h>
|
||||
|
||||
|
||||
|
||||
#if defined _M_X64 || defined _M_IX86 || defined _M_ARM || defined _M_ARM64
|
||||
#pragma warning(disable:4163)
|
||||
#pragma function(_wcsset)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
extern "C" wchar_t* __cdecl _wcsset(
|
||||
wchar_t* const string,
|
||||
wchar_t const value
|
||||
)
|
||||
{
|
||||
for (wchar_t* p = string; *p; ++p)
|
||||
*p = value;
|
||||
|
||||
return string;
|
||||
}
|
||||
Reference in New Issue
Block a user