reactos/sdk/lib/gcc-compat/StringCchCopyNA.c
Timo Kreuzer fcbccaa194 [GCC-COMPAT] Add support library for GCC's libsupc++ and libstdc++
__throw_out_of_range_fmt is implemented in libstdc++, but it is needed by libsupc++ and that would mean we would have to link all C++ code to libstdc++.
2024-07-09 12:01:24 +02:00

24 lines
602 B
C

/*
* PROJECT: GCC c++ support library
* LICENSE: MIT (https://spdx.org/licenses/MIT)
* PURPOSE: StringCchCopyNA implementation
* COPYRIGHT: Copyright 2024 Timo Kreuzer <timo.kreuzer@reactos.org>
*/
#include <windows.h>
#define StringCchCopyNA _StringCchCopyNA
#include <strsafe.h>
#undef StringCchCopyNA
HRESULT
WINAPI
StringCchCopyNA(
_Out_writes_(cchDest) _Always_(_Post_z_) STRSAFE_LPSTR pszDest,
_In_ size_t cchDest,
_In_reads_or_z_(cchToCopy) STRSAFE_LPCSTR pszSrc,
_In_ size_t cchToCopy)
{
return _StringCchCopyNA(pszDest, cchDest, pszSrc, cchToCopy);
}