| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files (x86)/Windows Kits/10/Source/10.0.19041.0/ucrt/string/ |
Upload File : |
//
// wmemmove_s.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Defines wmemmove_s(), which copies wide characters from a source buffer to a
// destination buffer. Overlapping buffers are treated specially, to avoid
// propagation.
//
// Returns 0 if successful; an error code on failure.
//
#include <corecrt_internal.h>
#include <wchar.h>
extern "C" errno_t __cdecl wmemmove_s(
wchar_t* const destination,
size_t const size_in_elements,
wchar_t const* const source,
size_t const count
)
{
if (count == 0)
return 0;
#pragma warning(suppress:__WARNING_HIGH_PRIORITY_OVERFLOW_POSTCONDITION)
_VALIDATE_RETURN_ERRCODE(destination != nullptr, EINVAL);
_VALIDATE_RETURN_ERRCODE(source != nullptr, EINVAL);
_VALIDATE_RETURN_ERRCODE(size_in_elements >= count, ERANGE);
#pragma warning(suppress:__WARNING_BANNED_API_USAGEL2) /* 28726 */
wmemmove(destination, source, count);
return 0;
}