mirror of
https://github.com/Chuyu-Team/VC-LTL5.git
synced 2026-10-18 22:00:51 +08:00
24 lines
611 B
C++
24 lines
611 B
C++
//
|
|
// strset_s.cpp
|
|
//
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//
|
|
// Defines _strset_s(), which sets all of the characters of a null-terminated
|
|
// string to the given character.
|
|
//
|
|
#include <corecrt_internal_string_templates.h>
|
|
#include <string.h>
|
|
|
|
|
|
#if WindowsTargetPlatformMinVersion < WindowsTargetPlatformWindows6
|
|
extern "C" errno_t __cdecl _strset_s(
|
|
char* const destination,
|
|
size_t const size_in_elements,
|
|
int const value
|
|
)
|
|
{
|
|
return common_tcsset_s(destination, size_in_elements, static_cast<char>(value));
|
|
}
|
|
|
|
_LCRT_DEFINE_IAT_SYMBOL(_strset_s);
|
|
#endif |