#pragma once
#include <corecrt.h>
#include <corecrt_memcpy_s.h>
#include <vcruntime_string.h>
#ifndef __midl
_CRT_BEGIN_C_HEADER
__pragma
(pack(push,
8
))
extern
"C"
{
_Check_return_
_ACRTIMP int __cdecl _memicmp(
__declspec
(dllimport)
int
__cdecl
(
_In_reads_bytes_opt_(_Size) void const* _Buf1,
_In_reads_bytes_opt_(_Size) void const* _Buf2,
);
_Check_return_
_ACRTIMP int __cdecl _memicmp_l(
__declspec
(dllimport)
int
__cdecl
(
_In_reads_bytes_opt_(_Size) void const* _Buf1,
_In_reads_bytes_opt_(_Size) void const* _Buf2,
_In_opt_ _locale_t _Locale
);
#if !defined RC_INVOKED && __STDC_WANT_SECURE_LIB__
#if defined __cplusplus && _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY
extern "C++"
{
template <size_t _Size, typename _DstType>
inline typename _CrtEnableIf<(_Size > 1), void *>::_Type __cdecl memcpy(
_DstType (&_Dst)[_Size],
_In_reads_bytes_opt_(_SrcSize) void const* _Src,
_In_ size_t _SrcSize
) _CRT_SECURE_CPP_NOTHROW
{
return memcpy_s(_Dst, _Size * sizeof(_DstType), _Src, _SrcSize) == 0 ? _Dst : 0;
}
}
#endif
#if defined __cplusplus && _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY
extern "C++"
{
template <size_t _Size, typename _DstType>
inline errno_t __CRTDECL memcpy_s(
_DstType (&_Dst)[_Size],
_In_reads_bytes_opt_(_SrcSize) void const* _Src,
_In_ rsize_t _SrcSize
) _CRT_SECURE_CPP_NOTHROW
{
return memcpy_s(_Dst, _Size * sizeof(_DstType), _Src, _SrcSize);
}
}
#endif
#endif // !defined RC_INVOKED && __STDC_WANT_SECURE_LIB__
#if _CRT_INTERNAL_NONSTDC_NAMES
_CRT_NONSTDC_DEPRECATE(_memccpy)
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_memccpy"
". See online help for details."
))
_ACRTIMP void* __cdecl memccpy(
__declspec
(dllimport)
void
*
__cdecl
(
_Out_writes_bytes_opt_(_Size) void* _Dst,
_In_reads_bytes_opt_(_Size) void const* _Src,
);
_Check_return_ _CRT_NONSTDC_DEPRECATE(_memicmp)
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_memicmp"
". See online help for details."
))
_ACRTIMP int __cdecl memicmp(
__declspec
(dllimport)
int
__cdecl
(
_In_reads_bytes_opt_(_Size) void const* _Buf1,
_In_reads_bytes_opt_(_Size) void const* _Buf2,
);
#endif // _CRT_INTERNAL_NONSTDC_NAMES
#if defined __cplusplus
extern "C++" _Check_return_
inline void* __CRTDECL memchr(
_In_reads_bytes_opt_(_N) void* _Pv,
)
{
void
const
*
const
=
;
return
const_cast
<
void
*>(
(
_Pvc
,
,
));
}
#endif
#endif // !__midl