mirror of
https://github.com/Chuyu-Team/VC-LTL5.git
synced 2026-10-18 13:50:46 +08:00
25 lines
650 B
C++
25 lines
650 B
C++
//
|
|
// strncat_s.cpp
|
|
//
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//
|
|
// Defines strncat_s(), which appends n characters of the source string onto the
|
|
// end of the destination string.
|
|
//
|
|
#include <corecrt_internal_string_templates.h>
|
|
#include <string.h>
|
|
|
|
|
|
#if WindowsTargetPlatformMinVersion < WindowsTargetPlatformWindows6
|
|
extern "C" errno_t __cdecl strncat_s(
|
|
char* const destination,
|
|
size_t const size_in_elements,
|
|
char const* const source,
|
|
size_t const count
|
|
)
|
|
{
|
|
return common_tcsncat_s(destination, size_in_elements, source, count);
|
|
}
|
|
|
|
_LCRT_DEFINE_IAT_SYMBOL(strncat_s);
|
|
#endif |