#pragma once
#ifndef _INC_STDIO // include guard for 3rd party interop
#define _INC_STDIO
#include <corecrt.h>
#include <corecrt_wstdio.h>
_CRT_BEGIN_C_HEADER
__pragma
(pack(push,
8
))
extern
"C"
{
#define BUFSIZ 512
#define _NFILE _NSTREAM_
#define _NSTREAM_ 512
#define _IOB_ENTRIES 3
#define EOF (-1)
#define _IOFBF 0x0000
#define _IOLBF 0x0040
#define _IONBF 0x0004
#define L_tmpnam 260 // _MAX_PATH
#if __STDC_WANT_SECURE_LIB__
#define L_tmpnam_s L_tmpnam
#endif
#define SEEK_CUR 1
#define SEEK_END 2
#define SEEK_SET 0
#define FILENAME_MAX 260
#define FOPEN_MAX 20
#define _SYS_OPEN 20
#define TMP_MAX _CRT_INT_MAX
#if __STDC_WANT_SECURE_LIB__
#define TMP_MAX_S TMP_MAX
#define _TMP_MAX_S TMP_MAX
#endif
typedef
__int64
;
#if _CRT_FUNCTIONS_REQUIRED
_Check_return_opt_
_ACRTIMP errno_t __cdecl _get_stream_buffer_pointers(
__declspec
(dllimport)
__cdecl
_get_stream_buffer_pointers
(
_Out_opt_ char*** _Pointer,
);
#if __STDC_WANT_SECURE_LIB__
_Check_return_wat_
_ACRTIMP errno_t __cdecl clearerr_s(
__declspec
(dllimport)
__cdecl
(
);
_Check_return_wat_
_ACRTIMP errno_t __cdecl fopen_s(
__declspec
(dllimport)
__cdecl
(
_Outptr_result_maybenull_ FILE** _Stream,
_In_z_ char const* _FileName,
);
_Check_return_opt_
_Success_(return != 0)
_ACRTIMP size_t __cdecl fread_s(
__declspec
(dllimport)
__cdecl
(
_Out_writes_bytes_to_(_BufferSize, _ElementSize * _ElementCount) void* _Buffer,
_In_range_(>=, _ElementSize * _ElementCount) size_t _BufferSize,
_In_ size_t _ElementSize,
_In_ size_t _ElementCount,
);
_Check_return_wat_
_ACRTIMP errno_t __cdecl freopen_s(
__declspec
(dllimport)
__cdecl
(
_Outptr_result_maybenull_ FILE** _Stream,
_In_z_ char const* _FileName,
_In_z_ char const* _Mode,
);
_Success_(return != 0)
_ACRTIMP char* __cdecl gets_s(
__declspec
(dllimport)
char
*
__cdecl
(
_Out_writes_z_(_Size) char* _Buffer,
);
_Check_return_wat_
_ACRTIMP errno_t __cdecl tmpfile_s(
__declspec
(dllimport)
__cdecl
(
_Out_opt_ _Deref_post_valid_ FILE** _Stream
);
_Success_(return == 0)
_Check_return_wat_
_ACRTIMP errno_t __cdecl tmpnam_s(
__declspec
(dllimport)
__cdecl
(
_Out_writes_z_(_Size) char* _Buffer,
);
#endif
_ACRTIMP void __cdecl clearerr(
__declspec
(dllimport)
void
__cdecl
(
);
_Success_(return != -1)
_Check_return_opt_
_ACRTIMP int __cdecl fclose(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_opt_
_ACRTIMP int __cdecl _fcloseall(void);
__declspec
(dllimport)
int
__cdecl
(
void
);
_Check_return_
_ACRTIMP FILE* __cdecl _fdopen(
__declspec
(dllimport)
*
__cdecl
(
);
_Check_return_
_ACRTIMP int __cdecl feof(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_
_ACRTIMP int __cdecl ferror(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_opt_
_ACRTIMP int __cdecl fflush(
__declspec
(dllimport)
int
__cdecl
(
_Inout_opt_ FILE* _Stream
);
_Success_(return != EOF)
_Check_return_opt_
_ACRTIMP int __cdecl fgetc(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_opt_
_ACRTIMP int __cdecl _fgetchar(void);
__declspec
(dllimport)
int
__cdecl
(
void
);
_Success_(return != EOF)
_Check_return_opt_
_ACRTIMP int __cdecl fgetpos(
__declspec
(dllimport)
int
__cdecl
(
);
_Success_(return == _Buffer)
_Check_return_opt_
_ACRTIMP char* __cdecl fgets(
__declspec
(dllimport)
char
*
__cdecl
(
_Out_writes_z_(_MaxCount) char* _Buffer,
);
_Check_return_
_ACRTIMP int __cdecl _fileno(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_opt_
_ACRTIMP int __cdecl _flushall(void);
__declspec
(dllimport)
int
__cdecl
(
void
);
_Check_return_ _CRT_INSECURE_DEPRECATE(fopen_s)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"fopen_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_ACRTIMP FILE* __cdecl fopen(
__declspec
(dllimport)
*
__cdecl
(
_In_z_ char const* _FileName,
);
_Success_(return != EOF)
_Check_return_opt_
_ACRTIMP int __cdecl fputc(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_opt_
_ACRTIMP int __cdecl _fputchar(
__declspec
(dllimport)
int
__cdecl
(
);
_Success_(return != EOF)
_Check_return_opt_
_ACRTIMP int __cdecl fputs(
__declspec
(dllimport)
int
__cdecl
(
_In_z_ char const* _Buffer,
);
_Check_return_opt_
_ACRTIMP size_t __cdecl fread(
__declspec
(dllimport)
__cdecl
(
_Out_writes_bytes_(_ElementSize * _ElementCount) void* _Buffer,
_In_ size_t _ElementSize,
_In_ size_t _ElementCount,
);
_Success_(return != 0)
_Check_return_ _CRT_INSECURE_DEPRECATE(freopen_s)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"freopen_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_ACRTIMP FILE* __cdecl freopen(
__declspec
(dllimport)
*
__cdecl
(
_In_z_ char const* _FileName,
_In_z_ char const* _Mode,
);
_Check_return_
_ACRTIMP FILE* __cdecl _fsopen(
__declspec
(dllimport)
*
__cdecl
(
_In_z_ char const* _FileName,
_In_z_ char const* _Mode,
);
_Success_(return == 0)
_Check_return_opt_
_ACRTIMP int __cdecl fsetpos(
__declspec
(dllimport)
int
__cdecl
(
_In_ fpos_t const* _Position
);
_Success_(return == 0)
_Check_return_opt_
_ACRTIMP int __cdecl fseek(
__declspec
(dllimport)
int
__cdecl
(
);
_Success_(return == 0)
_Check_return_opt_
_ACRTIMP int __cdecl _fseeki64(
__declspec
(dllimport)
int
__cdecl
(
);
_Success_(return != -1)
_Check_return_
_ACRTIMP long __cdecl ftell(
__declspec
(dllimport)
long
__cdecl
(
);
_Success_(return != -1)
_Check_return_
_ACRTIMP __int64 __cdecl _ftelli64(
__declspec
(dllimport)
__int64
__cdecl
(
);
_Check_return_opt_
_ACRTIMP size_t __cdecl fwrite(
__declspec
(dllimport)
__cdecl
(
_In_reads_bytes_(_ElementSize * _ElementCount) void const* _Buffer,
_In_ size_t _ElementSize,
_In_ size_t _ElementCount,
);
_Success_(return != EOF)
_Check_return_
_ACRTIMP int __cdecl getc(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_
_ACRTIMP int __cdecl getchar(void);
__declspec
(dllimport)
int
__cdecl
(
void
);
_Check_return_
_ACRTIMP int __cdecl _getmaxstdio(void);
__declspec
(dllimport)
int
__cdecl
(
void
);
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(
char*, gets_s,
char, _Buffer)
extern
"C++"
{
template
<
>
inline
char
*
__cdecl
(
char
(&
)[
])
throw
() {
return
(
,
); } }
_Check_return_
_ACRTIMP int __cdecl _getw(
__declspec
(dllimport)
int
__cdecl
(
);
_ACRTIMP void __cdecl perror(
__declspec
(dllimport)
void
__cdecl
(
_In_opt_z_ char const* _ErrorMessage
);
#if defined _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
_Success_(return != -1)
_Check_return_opt_
_DCRTIMP int __cdecl _pclose(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_
_DCRTIMP FILE* __cdecl _popen(
__declspec
(dllimport)
*
__cdecl
(
_In_z_ char const* _Command,
);
#endif
_Success_(return != EOF)
_Check_return_opt_
_ACRTIMP int __cdecl putc(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_opt_
_ACRTIMP int __cdecl putchar(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_opt_
_ACRTIMP int __cdecl puts(
__declspec
(dllimport)
int
__cdecl
(
_In_z_ char const* _Buffer
);
_Success_(return != -1)
_Check_return_opt_
_ACRTIMP int __cdecl _putw(
__declspec
(dllimport)
int
__cdecl
(
);
_ACRTIMP int __cdecl remove(
__declspec
(dllimport)
int
__cdecl
(
_In_z_ char const* _FileName
);
_Check_return_
_ACRTIMP int __cdecl rename(
__declspec
(dllimport)
int
__cdecl
(
_In_z_ char const* _OldFileName,
_In_z_ char const* _NewFileName
);
_ACRTIMP int __cdecl _unlink(
__declspec
(dllimport)
int
__cdecl
(
_In_z_ char const* _FileName
);
#if _CRT_INTERNAL_NONSTDC_NAMES
_CRT_NONSTDC_DEPRECATE(_unlink)
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_unlink"
". See online help for details."
))
_ACRTIMP int __cdecl unlink(
__declspec
(dllimport)
int
__cdecl
(
_In_z_ char const* _FileName
);
#endif
_ACRTIMP void __cdecl rewind(
__declspec
(dllimport)
void
__cdecl
(
);
_Check_return_opt_
_ACRTIMP int __cdecl _rmtmp(void);
__declspec
(dllimport)
int
__cdecl
(
void
);
_CRT_INSECURE_DEPRECATE(setvbuf)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"setvbuf"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_ACRTIMP void __cdecl setbuf(
__declspec
(dllimport)
void
__cdecl
(
_Inout_updates_opt_(BUFSIZ) _Post_readable_size_(0) char* _Buffer
);
_Check_return_opt_
_ACRTIMP int __cdecl _setmaxstdio(
__declspec
(dllimport)
int
__cdecl
(
);
_Success_(return == 0)
_Check_return_opt_
_ACRTIMP int __cdecl setvbuf(
__declspec
(dllimport)
int
__cdecl
(
_Inout_updates_opt_(_Size) char* _Buffer,
);
#if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
#pragma push_macro("_tempnam")
#undef _tempnam
#endif
_Check_return_
_ACRTIMP _CRTALLOCATOR char* __cdecl _tempnam(
__declspec
(dllimport)
__declspec
(allocator)
char
*
__cdecl
(
_In_opt_z_ char const* _DirectoryName,
_In_opt_z_ char const* _FilePrefix
);
#if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
#pragma pop_macro("_tempnam")
#endif
_Check_return_ _CRT_INSECURE_DEPRECATE(tmpfile_s)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"tmpfile_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_ACRTIMP FILE* __cdecl tmpfile(void);
__declspec
(dllimport)
*
__cdecl
(
void
);
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(
_Success_(return == 0)
errno_t, tmpnam_s,
_Always_(_Post_z_) char, _Buffer
)
extern
"C++"
{
template
<
>
inline
__cdecl
(
char
(&
)[
])
throw
() {
return
(
,
); } }
#pragma warning(push)
#pragma warning(disable: 28726) // __WARNING_BANNED_API_USAGEL2
#pragma warning(disable:
28726
)
__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(
_Success_(return != 0)
char*, __RETURN_POLICY_DST, _ACRTIMP, tmpnam,
_Pre_maybenull_ _Always_(_Post_z_), char, _Buffer
)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"tmpnam_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
__declspec
(dllimport)
char
*
__cdecl
(
char
*
);
#pragma warning(pop)
_Success_(return != EOF)
_Check_return_opt_
_ACRTIMP int __cdecl ungetc(
__declspec
(dllimport)
int
__cdecl
(
);
_ACRTIMP void __cdecl _lock_file(
__declspec
(dllimport)
void
__cdecl
(
);
_ACRTIMP void __cdecl _unlock_file(
__declspec
(dllimport)
void
__cdecl
(
);
_Success_(return != EOF)
_Check_return_opt_
_ACRTIMP int __cdecl _fclose_nolock(
__declspec
(dllimport)
int
__cdecl
(
);
_Success_(return != EOF)
_Check_return_opt_
_ACRTIMP int __cdecl _fflush_nolock(
__declspec
(dllimport)
int
__cdecl
(
_Inout_opt_ FILE* _Stream
);
_Success_(return != EOF)
_Check_return_opt_
_ACRTIMP int __cdecl _fgetc_nolock(
__declspec
(dllimport)
int
__cdecl
(
);
_Success_(return != EOF)
_Check_return_opt_
_ACRTIMP int __cdecl _fputc_nolock(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_opt_
_ACRTIMP size_t __cdecl _fread_nolock(
__declspec
(dllimport)
__cdecl
(
_Out_writes_bytes_(_ElementSize * _ElementCount) void* _Buffer,
_In_ size_t _ElementSize,
_In_ size_t _ElementCount,
);
_Check_return_opt_
_Success_(return != 0)
_ACRTIMP size_t __cdecl _fread_nolock_s(
__declspec
(dllimport)
__cdecl
(
_Out_writes_bytes_to_(_BufferSize, _ElementSize * _ElementCount) void* _Buffer,
_In_range_(>=, _ElementSize * _ElementCount) size_t _BufferSize,
_In_ size_t _ElementSize,
_In_ size_t _ElementCount,
);
_Check_return_opt_
_ACRTIMP int __cdecl _fseek_nolock(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_opt_
_ACRTIMP int __cdecl _fseeki64_nolock(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_
_ACRTIMP long __cdecl _ftell_nolock(
__declspec
(dllimport)
long
__cdecl
(
);
_Check_return_
_ACRTIMP __int64 __cdecl _ftelli64_nolock(
__declspec
(dllimport)
__int64
__cdecl
(
);
_Check_return_opt_
_ACRTIMP size_t __cdecl _fwrite_nolock(
__declspec
(dllimport)
__cdecl
(
_In_reads_bytes_(_ElementSize * _ElementCount) void const* _Buffer,
_In_ size_t _ElementSize,
_In_ size_t _ElementCount,
);
_Check_return_opt_
_ACRTIMP int __cdecl _getc_nolock(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_opt_
_ACRTIMP int __cdecl _putc_nolock(
__declspec
(dllimport)
int
__cdecl
(
);
_Check_return_opt_
_ACRTIMP int __cdecl _ungetc_nolock(
__declspec
(dllimport)
int
__cdecl
(
);
#define _getchar_nolock() _getc_nolock(stdin)
#define _putchar_nolock(_Ch) _putc_nolock(_Ch, stdout)
#define _getwchar_nolock() _getwc_nolock(stdin)
#define _putwchar_nolock(_Ch) _putwc_nolock(_Ch, stdout)
#if defined _CRT_DISABLE_PERFCRIT_LOCKS && !defined _DLL
#define fclose(_Stream) _fclose_nolock(_Stream)
#define fflush(_Stream) _fflush_nolock(_Stream)
#define fgetc(_Stream) _fgetc_nolock(_Stream)
#define fputc(_Ch, _Stream) _fputc_nolock(_Ch, _Stream)
#define fread(_DstBuf, _ElementSize, _Count, _Stream) _fread_nolock(_DstBuf, _ElementSize, _Count, _Stream)
#define fread_s(_DstBuf, _DstSize, _ElementSize, _Count, _Stream) _fread_nolock_s(_DstBuf, _DstSize, _ElementSize, _Count, _Stream)
#define fseek(_Stream, _Offset, _Origin) _fseek_nolock(_Stream, _Offset, _Origin)
#define _fseeki64(_Stream, _Offset, _Origin) _fseeki64_nolock(_Stream, _Offset, _Origin)
#define ftell(_Stream) _ftell_nolock(_Stream)
#define _ftelli64(_Stream) _ftelli64_nolock(_Stream)
#define fwrite(_SrcBuf, _ElementSize, _Count, _Stream) _fwrite_nolock(_SrcBuf, _ElementSize, _Count, _Stream)
#define getc(_Stream) _getc_nolock(_Stream)
#define putc(_Ch, _Stream) _putc_nolock(_Ch, _Stream)
#define ungetc(_Ch, _Stream) _ungetc_nolock(_Ch, _Stream)
#endif
_ACRTIMP int* __cdecl __p__commode(void);
__declspec
(dllimport)
int
*
__cdecl
(
void
);
#ifdef _CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY
extern int _commode;
#else
#define _commode (*__p__commode())
#endif
#if defined _M_CEE_MIXED
#pragma managed(push, off)
#endif
_ACRTIMP int __cdecl __stdio_common_vfprintf(
__declspec
(dllimport)
int
__cdecl
(
_In_ unsigned __int64 _Options,
_In_z_ _Printf_format_string_params_(2) char const* _Format,
_In_opt_ _locale_t _Locale,
);
_ACRTIMP int __cdecl __stdio_common_vfprintf_s(
__declspec
(dllimport)
int
__cdecl
__stdio_common_vfprintf_s
(
_In_ unsigned __int64 _Options,
_In_z_ _Printf_format_string_params_(2) char const* _Format,
_In_opt_ _locale_t _Locale,
);
_Success_(return >= 0)
_ACRTIMP int __cdecl __stdio_common_vfprintf_p(
__declspec
(dllimport)
int
__cdecl
__stdio_common_vfprintf_p
(
_In_ unsigned __int64 _Options,
_In_z_ _Printf_format_string_params_(2) char const* _Format,
_In_opt_ _locale_t _Locale,
);
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vfprintf_l(
_Inout_ FILE* const _Stream,
_In_z_ char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return __stdio_common_vfprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList);
return
((*
__local_stdio_printf_options
()),
,
,
,
);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vfprintf(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfprintf_l(_Stream, _Format, NULL, _ArgList);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vfprintf_s_l(
_Inout_ FILE* const _Stream,
_In_z_ char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return __stdio_common_vfprintf_s(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList);
return
__stdio_common_vfprintf_s
((*
__local_stdio_printf_options
()),
,
,
,
);
}
#endif
#if __STDC_WANT_SECURE_LIB__
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vfprintf_s(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfprintf_s_l(_Stream, _Format, NULL, _ArgList);
}
#endif
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vfprintf_p_l(
_Inout_ FILE* const _Stream,
_In_z_ char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return __stdio_common_vfprintf_p(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList);
return
__stdio_common_vfprintf_p
((*
__local_stdio_printf_options
()),
,
,
,
);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vfprintf_p(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfprintf_p_l(_Stream, _Format, NULL, _ArgList);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vprintf_l(
_In_z_ _Printf_format_string_params_(2) char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfprintf_l(stdout, _Format, _Locale, _ArgList);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vprintf(
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfprintf_l(stdout, _Format, NULL, _ArgList);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vprintf_s_l(
_In_z_ _Printf_format_string_params_(2) char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfprintf_s_l(stdout, _Format, _Locale, _ArgList);
}
#endif
#if __STDC_WANT_SECURE_LIB__
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vprintf_s(
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfprintf_s_l(stdout, _Format, NULL, _ArgList);
}
#endif
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vprintf_p_l(
_In_z_ _Printf_format_string_params_(2) char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfprintf_p_l(stdout, _Format, _Locale, _ArgList);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vprintf_p(
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfprintf_p_l(stdout, _Format, NULL, _ArgList);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _fprintf_l(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL fprintf(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfprintf_l(_Stream, _Format, NULL, _ArgList);
_Result
=
(
,
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_ACRTIMP int __cdecl _set_printf_count_output(
__declspec
(dllimport)
int
__cdecl
(
);
_ACRTIMP int __cdecl _get_printf_count_output(void);
__declspec
(dllimport)
int
__cdecl
(
void
);
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _fprintf_s_l(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#if __STDC_WANT_SECURE_LIB__
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL fprintf_s(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfprintf_s_l(_Stream, _Format, NULL, _ArgList);
_Result
=
(
,
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _fprintf_p_l(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _fprintf_p(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfprintf_p_l(_Stream, _Format, NULL, _ArgList);
_Result
=
(
,
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _printf_l(
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfprintf_l(stdout, _Format, _Locale, _ArgList);
_Result
=
((
(
1
)),
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL printf(
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfprintf_l(stdout, _Format, NULL, _ArgList);
_Result
=
((
(
1
)),
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _printf_s_l(
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfprintf_s_l(stdout, _Format, _Locale, _ArgList);
_Result
=
((
(
1
)),
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#if __STDC_WANT_SECURE_LIB__
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL printf_s(
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfprintf_s_l(stdout, _Format, NULL, _ArgList);
_Result
=
((
(
1
)),
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _printf_p_l(
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfprintf_p_l(stdout, _Format, _Locale, _ArgList);
_Result
=
((
(
1
)),
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _printf_p(
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfprintf_p_l(stdout, _Format, NULL, _ArgList);
_Result
=
((
(
1
)),
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_ACRTIMP int __cdecl __stdio_common_vfscanf(
__declspec
(dllimport)
int
__cdecl
(
_In_ unsigned __int64 _Options,
_In_z_ _Scanf_format_string_params_(2) char const* _Format,
_In_opt_ _locale_t _Locale,
);
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vfscanf_l(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_ char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return
(
_CRT_INTERNAL_LOCAL_SCANF_OPTIONS,
(*
__local_stdio_scanf_options
()),
,
,
,
);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vfscanf(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfscanf_l(_Stream, _Format, NULL, _ArgList);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vfscanf_s_l(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_ char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return
(
_CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT,
(*
__local_stdio_scanf_options
()) | (
1ULL
<<
0
),
,
,
,
);
}
#endif
#if __STDC_WANT_SECURE_LIB__
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vfscanf_s(
_Inout_ FILE* const _Stream,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfscanf_s_l(_Stream, _Format, NULL, _ArgList);
}
#endif
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vscanf_l(
_In_z_ _Printf_format_string_ char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfscanf_l(stdin, _Format, _Locale, _ArgList);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vscanf(
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfscanf_l(stdin, _Format, NULL, _ArgList);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vscanf_s_l(
_In_z_ _Printf_format_string_ char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfscanf_s_l(stdin, _Format, _Locale, _ArgList);
}
#endif
#if __STDC_WANT_SECURE_LIB__
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vscanf_s(
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vfscanf_s_l(stdin, _Format, NULL, _ArgList);
}
#endif
#endif
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_fscanf_s_l)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_fscanf_s_l"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL _fscanf_l(
_Inout_ FILE* const _Stream,
_In_z_ _Scanf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_ _CRT_INSECURE_DEPRECATE(fscanf_s)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"fscanf_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL fscanf(
_Inout_ FILE* const _Stream,
_In_z_ _Scanf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfscanf_l(_Stream, _Format, NULL, _ArgList);
_Result
=
(
,
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _fscanf_s_l(
_Inout_ FILE* const _Stream,
_In_z_ _Scanf_s_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#if __STDC_WANT_SECURE_LIB__
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL fscanf_s(
_Inout_ FILE* const _Stream,
_In_z_ _Scanf_s_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfscanf_s_l(_Stream, _Format, NULL, _ArgList);
_Result
=
(
,
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#endif
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_scanf_s_l)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_scanf_s_l"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL _scanf_l(
_In_z_ _Scanf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfscanf_l(stdin, _Format, _Locale, _ArgList);
_Result
=
((
(
0
)),
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_ _CRT_INSECURE_DEPRECATE(scanf_s)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"scanf_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL scanf(
_In_z_ _Scanf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfscanf_l(stdin, _Format, NULL, _ArgList);
_Result
=
((
(
0
)),
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _scanf_s_l(
_In_z_ _Scanf_s_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfscanf_s_l(stdin, _Format, _Locale, _ArgList);
_Result
=
((
(
0
)),
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#if __STDC_WANT_SECURE_LIB__
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL scanf_s(
_In_z_ _Scanf_s_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vfscanf_s_l(stdin, _Format, NULL, _ArgList);
_Result
=
((
(
0
)),
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#endif
_Success_(return >= 0)
_ACRTIMP int __cdecl __stdio_common_vsprintf(
__declspec
(dllimport)
int
__cdecl
(
_In_ unsigned __int64 _Options,
_Out_writes_opt_z_(_BufferCount) char* _Buffer,
_In_ size_t _BufferCount,
_In_z_ _Printf_format_string_params_(2) char const* _Format,
_In_opt_ _locale_t _Locale,
);
_Success_(return >= 0)
_ACRTIMP int __cdecl __stdio_common_vsprintf_s(
__declspec
(dllimport)
int
__cdecl
__stdio_common_vsprintf_s
(
_In_ unsigned __int64 _Options,
_Out_writes_z_(_BufferCount) char* _Buffer,
_In_ size_t _BufferCount,
_In_z_ _Printf_format_string_params_(2) char const* _Format,
_In_opt_ _locale_t _Locale,
);
_Success_(return >= 0)
_ACRTIMP int __cdecl __stdio_common_vsnprintf_s(
__declspec
(dllimport)
int
__cdecl
__stdio_common_vsnprintf_s
(
_In_ unsigned __int64 _Options,
_Out_writes_opt_z_(_BufferCount) char* _Buffer,
_In_ size_t _BufferCount,
_In_z_ _Printf_format_string_params_(2) char const* _Format,
_In_opt_ _locale_t _Locale,
);
_Success_(return >= 0)
_ACRTIMP int __cdecl __stdio_common_vsprintf_p(
__declspec
(dllimport)
int
__cdecl
__stdio_common_vsprintf_p
(
_In_ unsigned __int64 _Options,
_Out_writes_z_(_BufferCount) char* _Buffer,
_In_ size_t _BufferCount,
_In_z_ _Printf_format_string_params_(2) char const* _Format,
_In_opt_ _locale_t _Locale,
);
_Success_(return >= 0)
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vsnprintf_s_l)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_vsnprintf_s_l"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL _vsnprintf_l(
_Out_writes_opt_(_BufferCount) _Post_maybez_ char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_params_(2) char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
const
=
(
_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION,
(*
__local_stdio_printf_options
()) | (
1ULL
<<
0
),
,
,
,
,
);
return
_Result
<
0
? -
1
:
_Result
;
}
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vsnprintf(
_Out_writes_opt_(_BufferCount) _Post_maybez_ char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
#pragma warning(push)
#pragma warning(push)
#pragma warning(disable: 4996) // Deprecation
#pragma warning(disable:
4996
)
return _vsnprintf_l(_Buffer, _BufferCount, _Format, NULL, _ArgList);
#pragma warning(pop)
#pragma warning(pop)
}
#endif
#if defined vsnprintf
// This definition of vsnprintf will generate "warning C4005: 'vsnprintf': macro
// redefinition" with a subsequent line indicating where the previous definition
// of vsnprintf was. This makes it easier to find where vsnprintf was defined.
#pragma warning(push, 1)
#pragma warning(1: 4005)
#define vsnprintf Do not define vsnprintf as a macro
#pragma warning(pop)
#error Macro definition of vsnprintf conflicts with Standard Library function declaration
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vsnprintf(
_Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
const
=
(
_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR,
(*
__local_stdio_printf_options
()) | (
1ULL
<<
1
),
_Buffer, _BufferCount, _Format, NULL, _ArgList);
return
_Result
<
0
? -
1
:
_Result
;
}
#endif
_Success_(return >= 0)
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vsprintf_s_l)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_vsprintf_s_l"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL _vsprintf_l(
_Pre_notnull_ _Always_(_Post_z_) char* const _Buffer,
_In_z_ char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
#pragma warning(push)
#pragma warning(push)
#pragma warning(disable: 4996) // Deprecation
#pragma warning(disable:
4996
)
return
(
, (
)-
1
,
,
,
);
#pragma warning(pop)
#pragma warning(pop)
}
#endif
_Success_(return >= 0)
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(vsprintf_s)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"vsprintf_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL vsprintf(
_Pre_notnull_ _Always_(_Post_z_) char* const _Buffer,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
#pragma warning(push)
#pragma warning(push)
#pragma warning(disable: 4996) // Deprecation
#pragma warning(disable:
4996
)
return _vsnprintf_l(_Buffer, (size_t)-1, _Format, NULL, _ArgList);
#pragma warning(pop)
#pragma warning(pop)
}
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vsprintf_s_l(
_Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_params_(2) char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
const
=
__stdio_common_vsprintf_s
(
_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS,
(*
__local_stdio_printf_options
()),
,
,
,
,
);
return
_Result
<
0
? -
1
:
_Result
;
}
#endif
#if __STDC_WANT_SECURE_LIB__
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vsprintf_s(
_Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vsprintf_s_l(_Buffer, _BufferCount, _Format, NULL, _ArgList);
}
#endif
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(
_Success_(return >= 0)
int, vsprintf_s,
_Always_(_Post_z_) char, _Buffer,
_In_z_ _Printf_format_string_ char const*, _Format,
va_list, _ArgList
)
extern
"C++"
{
template
<
>
inline
int
__cdecl
(
char
(&
)[
],
char
const
*
,
)
throw
() {
return
(
,
,
,
); } }
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vsprintf_p_l(
_Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_params_(2) char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
const
=
__stdio_common_vsprintf_p
(
_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS,
(*
__local_stdio_printf_options
()),
,
,
,
,
);
return
_Result
<
0
? -
1
:
_Result
;
}
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vsprintf_p(
_Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vsprintf_p_l(_Buffer, _BufferCount, _Format, NULL, _ArgList);
}
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vsnprintf_s_l(
_Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_ size_t const _MaxCount,
_In_z_ _Printf_format_string_params_(2) char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
const
=
__stdio_common_vsnprintf_s
(
_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS,
(*
__local_stdio_printf_options
()),
,
,
,
,
,
);
return
_Result
<
0
? -
1
:
_Result
;
}
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vsnprintf_s(
_Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_ size_t const _MaxCount,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, NULL, _ArgList);
}
#endif
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(
_Success_(return >= 0)
int, _vsnprintf_s,
_Always_(_Post_z_) char, _Buffer,
_In_ size_t, _BufferCount,
_In_z_ _Printf_format_string_ char const*, _Format,
va_list, _ArgList
)
extern
"C++"
{
template
<
>
inline
int
__cdecl
(
char
(&
)[
],
,
char
const
*
,
)
throw
() {
return
(
,
,
,
,
); } }
#if __STDC_WANT_SECURE_LIB__
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vsnprintf_s(
_Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_ size_t const _MaxCount,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, NULL, _ArgList);
}
#endif
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(
_Success_(return >= 0)
int, vsnprintf_s,
_Always_(_Post_z_) char, _Buffer,
_In_ size_t, _BufferCount,
_In_z_ _Printf_format_string_ char const*, _Format,
va_list, _ArgList
)
extern
"C++"
{
template
<
>
inline
int
__cdecl
(
char
(&
)[
],
,
char
const
*
,
)
throw
() {
return
(
,
,
,
,
); } }
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vscprintf_l(
_In_z_ _Printf_format_string_params_(2) char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
const
=
(
_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR,
(*
__local_stdio_printf_options
()) | (
1ULL
<<
1
),
NULL, 0, _Format, _Locale, _ArgList);
return
_Result
<
0
? -
1
:
_Result
;
}
#endif
_Check_return_
_CRT_STDIO_INLINE int __CRTDECL _vscprintf(
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vscprintf_l(_Format, NULL, _ArgList);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vscprintf_p_l(
_In_z_ _Printf_format_string_params_(2) char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
const
=
__stdio_common_vsprintf_p
(
_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR,
(*
__local_stdio_printf_options
()) | (
1ULL
<<
1
),
NULL, 0, _Format, _Locale, _ArgList);
return
_Result
<
0
? -
1
:
_Result
;
}
#endif
_Check_return_
_CRT_STDIO_INLINE int __CRTDECL _vscprintf_p(
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vscprintf_p_l(_Format, NULL, _ArgList);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vsnprintf_c_l(
_Out_writes_opt_(_BufferCount) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_params_(2) char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
const
=
(
_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS,
(*
__local_stdio_printf_options
()),
,
,
,
,
);
return
_Result
<
0
? -
1
:
_Result
;
}
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vsnprintf_c(
_Out_writes_opt_(_BufferCount) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vsnprintf_c_l(_Buffer, _BufferCount, _Format, NULL, _ArgList);
}
#endif
_Success_(return >= 0)
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_sprintf_s_l)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_sprintf_s_l"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL _sprintf_l(
_Pre_notnull_ _Always_(_Post_z_) char* const _Buffer,
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
#pragma warning(push)
#pragma warning(push)
#pragma warning(disable: 4996) // Deprecation
#pragma warning(disable:
4996
)
_Result
=
(
,
,
,
_ArgList
);
#pragma warning(pop)
#pragma warning(pop)
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL sprintf(
_Pre_notnull_ _Always_(_Post_z_) char* const _Buffer,
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
#pragma warning(push)
#pragma warning(push)
#pragma warning(disable: 4996) // Deprecation
#pragma warning(disable:
4996
)
_Result = _vsprintf_l(_Buffer, _Format, NULL, _ArgList);
_Result
=
(
,
,
0
,
_ArgList
);
#pragma warning(pop)
#pragma warning(pop)
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#pragma warning(push)
#pragma warning(push)
#pragma warning(disable: 4996)
#pragma warning(disable:
4996
)
#pragma warning(disable: 28719) // __WARNING_BANNED_API_USAGE
#pragma warning(disable:
28719
)
#pragma warning(disable: 28726) // __WARNING_BANNED_API_USAGEL2
#pragma warning(disable:
28726
)
__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST(
_Success_(return >= 0)
int, __RETURN_POLICY_SAME, __EMPTY_DECLSPEC, __CRTDECL, sprintf, vsprintf,
_Pre_notnull_ _Always_(_Post_z_), char, _Buffer,
_In_z_ _Printf_format_string_ char const*, _Format
)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"sprintf_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
int
__cdecl
(
char
*
,
char
const
*
, ...);
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"vsprintf_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
int
__cdecl
(
char
*
,
char
const
*
,
);
#pragma warning(pop)
#pragma warning(pop)
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _sprintf_s_l(
_Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#if __STDC_WANT_SECURE_LIB__
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL sprintf_s(
_Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vsprintf_s_l(_Buffer, _BufferCount, _Format, NULL, _ArgList);
_Result
=
(
,
,
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#endif
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1_ARGLIST(
_Success_(return >= 0)
int, sprintf_s, vsprintf_s,
_Always_(_Post_z_) char, _Buffer,
_In_z_ _Printf_format_string_ char const*, _Format
)
extern
"C++"
{
__pragma
(warning(push));
__pragma
(warning(disable:
4793
));
template
<
>
inline
int
__cdecl
(
char
(&
)[
],
char
const
*
, ...)
throw
() {
; ((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
return
(
,
,
,
_ArgList
); }
__pragma
(warning(pop)); }
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _sprintf_p_l(
_Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _sprintf_p(
_Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vsprintf_p_l(_Buffer, _BufferCount, _Format, NULL, _ArgList);
_Result
=
(
,
,
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Success_(return >= 0)
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_snprintf_s_l)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_snprintf_s_l"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL _snprintf_l(
_Out_writes_opt_(_BufferCount) _Post_maybez_ char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
#pragma warning(push)
#pragma warning(push)
#pragma warning(disable: 4996) // Deprecation
#pragma warning(disable:
4996
)
_Result
=
(
,
,
,
,
_ArgList
);
#pragma warning(pop)
#pragma warning(pop)
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#if defined snprintf
// This definition of snprintf will generate "warning C4005: 'snprintf': macro
// redefinition" with a subsequent line indicating where the previous definition
// of snprintf was. This makes it easier to find where snprintf was defined.
#pragma warning(push, 1)
#pragma warning(1: 4005)
#define snprintf Do not define snprintf as a macro
#pragma warning(pop)
#error Macro definition of snprintf conflicts with Standard Library function declaration
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL snprintf(
_Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
#pragma warning(suppress:28719) // 28719
#pragma warning(suppress:
28719
)
_Result
=
(
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _snprintf(
_Out_writes_opt_(_BufferCount) _Post_maybez_ char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
#pragma warning(suppress:28719) // 28719
#pragma warning(suppress:
28719
)
_Result
=
(
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST_EX(
_Success_(return >= 0)
int, __RETURN_POLICY_SAME, __EMPTY_DECLSPEC, __CRTDECL, _snprintf, _vsnprintf,
_Pre_notnull_ _Post_maybez_ char,
_Out_writes_opt_(_BufferCount) _Post_maybez_, char, _Buffer,
_In_ size_t, _BufferCount,
_In_z_ _Printf_format_string_ char const*, _Format
)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_snprintf_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
int
__cdecl
(
char
*
,
,
char
const
*
, ...);
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_vsnprintf_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
int
__cdecl
(
char
*
,
,
char
const
*
,
);
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _snprintf_c_l(
_Out_writes_opt_(_BufferCount) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _snprintf_c(
_Out_writes_opt_(_BufferCount) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vsnprintf_c_l(_Buffer, _BufferCount, _Format, NULL, _ArgList);
_Result
=
(
,
,
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _snprintf_s_l(
_Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_ size_t const _MaxCount,
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _snprintf_s(
_Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_ size_t const _MaxCount,
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, NULL, _ArgList);
_Result
=
(
,
,
,
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2_ARGLIST(
_Success_(return >= 0)
int, _snprintf_s, _vsnprintf_s,
_Always_(_Post_z_) char, _Buffer,
_In_ size_t, _BufferCount,
_In_z_ _Printf_format_string_ char const*, _Format
)
extern
"C++"
{
__pragma
(warning(push));
__pragma
(warning(disable:
4793
));
template
<
>
inline
int
__cdecl
(
char
(&
)[
],
,
char
const
*
, ...)
throw
() {
; ((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
return
(
,
,
,
,
_ArgList
); }
__pragma
(warning(pop)); }
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _scprintf_l(
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_
_CRT_STDIO_INLINE int __CRTDECL _scprintf(
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vscprintf_l(_Format, NULL, _ArgList);
_Result
=
(
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _scprintf_p_l(
_In_z_ _Printf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_
_CRT_STDIO_INLINE int __CRTDECL _scprintf_p(
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_ACRTIMP int __cdecl __stdio_common_vsscanf(
__declspec
(dllimport)
int
__cdecl
(
_In_ unsigned __int64 _Options,
_In_reads_(_BufferCount) _Pre_z_ char const* _Buffer,
_In_ size_t _BufferCount,
_In_z_ _Scanf_format_string_params_(2) char const* _Format,
_In_opt_ _locale_t _Locale,
);
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vsscanf_l(
_In_z_ char const* const _Buffer,
_In_z_ _Printf_format_string_ char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return
(
_CRT_INTERNAL_LOCAL_SCANF_OPTIONS,
(*
__local_stdio_scanf_options
()),
, (
)-
1
,
,
,
);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vsscanf(
_In_z_ char const* const _Buffer,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vsscanf_l(_Buffer, _Format, NULL, _ArgList);
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _vsscanf_s_l(
_In_z_ char const* const _Buffer,
_In_z_ _Printf_format_string_ char const* const _Format,
_In_opt_ _locale_t const _Locale,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return
(
_CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT,
(*
__local_stdio_scanf_options
()) | (
1ULL
<<
0
),
, (
)-
1
,
,
,
);
}
#endif
#if __STDC_WANT_SECURE_LIB__
#pragma warning(push)
#pragma warning(push)
#pragma warning(disable:6530)
#pragma warning(disable:
6530
)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL vsscanf_s(
_In_z_ char const* const _Buffer,
_In_z_ _Printf_format_string_ char const* const _Format,
)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
return _vsscanf_s_l(_Buffer, _Format, NULL, _ArgList);
}
#endif
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(
int, vsscanf_s,
_In_z_ char const, _Buffer,
_In_z_ _Printf_format_string_ char const*, _Format,
va_list, _ArgList
)
extern
"C++"
{
template
<
>
inline
int
__cdecl
(
char
const
(&
)[
],
char
const
*
,
)
throw
() {
return
(
,
,
,
); } }
#pragma warning(pop)
#pragma warning(pop)
#endif
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_sscanf_s_l)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_sscanf_s_l"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL _sscanf_l(
_In_z_ char const* const _Buffer,
_In_z_ _Scanf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_ _CRT_INSECURE_DEPRECATE(sscanf_s)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"sscanf_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL sscanf(
_In_z_ char const* const _Buffer,
_In_z_ _Scanf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result = _vsscanf_l(_Buffer, _Format, NULL, _ArgList);
_Result
=
(
,
,
0
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _sscanf_s_l(
_In_z_ char const* const _Buffer,
_In_z_ _Scanf_s_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#if __STDC_WANT_SECURE_LIB__
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL sscanf_s(
_In_z_ char const* const _Buffer,
_In_z_ _Scanf_s_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
#pragma warning(push)
#pragma warning(push)
#pragma warning(disable: 4996) // Deprecation
#pragma warning(disable:
4996
)
_Result
=
(
,
,
_ArgList
);
#pragma warning(pop)
#pragma warning(pop)
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#endif
#pragma warning(push)
#pragma warning(push)
#pragma warning(disable:6530)
#pragma warning(disable:
6530
)
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_snscanf_s_l)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_snscanf_s_l"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL _snscanf_l(
_In_reads_bytes_(_BufferCount) _Pre_z_ char const* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Scanf_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
_CRT_INTERNAL_LOCAL_SCANF_OPTIONS,
(*
__local_stdio_scanf_options
()),
,
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_snscanf_s)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_snscanf_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_CRT_STDIO_INLINE int __CRTDECL _snscanf(
_In_reads_bytes_(_BufferCount) _Pre_z_ char const* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Scanf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
_CRT_INTERNAL_LOCAL_SCANF_OPTIONS,
(*
__local_stdio_scanf_options
()),
_Buffer, _BufferCount, _Format, NULL, _ArgList);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _snscanf_s_l(
_In_reads_bytes_(_BufferCount) _Pre_z_ char const* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Scanf_s_format_string_params_(0) char const* const _Format,
_In_opt_ _locale_t const _Locale,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Locale);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
_CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT,
(*
__local_stdio_scanf_options
()) | (
1ULL
<<
0
),
,
,
,
,
_ArgList
);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL _snscanf_s(
_In_reads_bytes_(_BufferCount) _Pre_z_ char const* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Scanf_s_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE // SCANF
;
#else
{
int
;
;
__crt_va_start(_ArgList, _Format);
((
void
)(
__vcrt_assert_va_start_is_not_reference
<
decltype
(
)>(), ((
void
)(
_ArgList
= (
)(&
const_cast
<
char
&>(
reinterpret_cast
<
const
volatile
char
&>(
))) + ((
sizeof
(
) +
sizeof
(
int
) -
1
) & ~(
sizeof
(
int
) -
1
))))));
_Result
=
(
_CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT,
(*
__local_stdio_scanf_options
()) | (
1ULL
<<
0
),
_Buffer, _BufferCount, _Format, NULL, _ArgList);
__crt_va_end(_ArgList);
((
void
)(
_ArgList
= (
)
0
));
return
_Result
;
}
#endif
#pragma warning(pop)
#pragma warning(pop)
#if defined _M_CEE_MIXED
#pragma managed(pop)
#endif
#if _CRT_INTERNAL_NONSTDC_NAMES
#define SYS_OPEN _SYS_OPEN
#if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
#pragma push_macro("tempnam")
#undef tempnam
#endif
_CRT_NONSTDC_DEPRECATE(_tempnam)
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_tempnam"
". See online help for details."
))
_ACRTIMP char* __cdecl tempnam(
__declspec
(dllimport)
char
*
__cdecl
(
_In_opt_z_ char const* _Directory,
_In_opt_z_ char const* _FilePrefix
);
#if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
#pragma pop_macro("tempnam")
#endif
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_fcloseall) _ACRTIMP int __cdecl fcloseall(void);
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_fcloseall"
". See online help for details."
))
__declspec
(dllimport)
int
__cdecl
(
void
);
_Check_return_ _CRT_NONSTDC_DEPRECATE(_fdopen) _ACRTIMP FILE* __cdecl fdopen(_In_ int _FileHandle, _In_z_ char const* _Format);
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_fdopen"
". See online help for details."
))
__declspec
(dllimport)
*
__cdecl
(
int
,
char
const
*
);
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_fgetchar) _ACRTIMP int __cdecl fgetchar(void);
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_fgetchar"
". See online help for details."
))
__declspec
(dllimport)
int
__cdecl
(
void
);
_Check_return_ _CRT_NONSTDC_DEPRECATE(_fileno) _ACRTIMP int __cdecl fileno(_In_ FILE* _Stream);
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_fileno"
". See online help for details."
))
__declspec
(dllimport)
int
__cdecl
(
*
);
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_flushall) _ACRTIMP int __cdecl flushall(void);
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_flushall"
". See online help for details."
))
__declspec
(dllimport)
int
__cdecl
(
void
);
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_fputchar) _ACRTIMP int __cdecl fputchar(_In_ int _Ch);
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_fputchar"
". See online help for details."
))
__declspec
(dllimport)
int
__cdecl
(
int
);
_Check_return_ _CRT_NONSTDC_DEPRECATE(_getw) _ACRTIMP int __cdecl getw(_Inout_ FILE* _Stream);
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_getw"
". See online help for details."
))
__declspec
(dllimport)
int
__cdecl
(
*
);
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_putw) _ACRTIMP int __cdecl putw(_In_ int _Ch, _Inout_ FILE* _Stream);
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_putw"
". See online help for details."
))
__declspec
(dllimport)
int
__cdecl
(
int
,
*
);
_Check_return_ _CRT_NONSTDC_DEPRECATE(_rmtmp) _ACRTIMP int __cdecl rmtmp(void);
__declspec
(deprecated(
"The POSIX name for this item is deprecated. Instead, use the ISO C "
"and C++ conformant name: "
"_rmtmp"
". See online help for details."
))
__declspec
(dllimport)
int
__cdecl
(
void
);
#endif // _CRT_INTERNAL_NONSTDC_NAMES
#endif // _CRT_FUNCTIONS_REQUIRED
_CRT_END_C_HEADER
#endif // _INC_STDIO