11#define __need___va_list
14#pragma pack(push,_CRT_PACKING)
21#define _NFILE _NSTREAM_
23#define _IOB_ENTRIES 20
43#define _wP_tmpdir L"/"
46#define _wP_tmpdir L"\\"
49#define L_tmpnam (sizeof(_P_tmpdir) + 12)
61#define STDOUT_FILENO 1
62#define STDERR_FILENO 2
64#define FILENAME_MAX 260
74#if !defined(NO_OLDNAMES) || defined(_POSIX)
80#ifndef _OFF64_T_DEFINED
81#define _OFF64_T_DEFINED
83#if !defined(NO_OLDNAMES) || defined(_POSIX)
96#ifndef _STDSTREAM_DEFINED
97#define _STDSTREAM_DEFINED
98#define stdin (&_iob[0])
99#define stdout (&_iob[1])
100#define stderr (&_iob[2])
103#ifndef _FPOS_T_DEFINED
104#define _FPOS_T_DEFINED
107#if (!defined(NO_OLDNAMES) || defined(__GNUC__)) && _INTEGRAL_MAX_BITS >= 64
109#define _FPOSOFF(fp) ((long)(fp))
112#define _FPOSOFF(fp) ((long)(fp))
124#define _IOREAD 0x0001
131#define _IOMYBUF 0x0008
134#define _IOSTRG 0x0040
136#define _USERBUF 0x0100
138#define _TWO_DIGIT_EXPONENT 0x1
140#ifndef _STDIO_DEFINED
162 const char *_Filename,
170 _In_z_ const char *_Filename,
206 _In_ int _FileHandle,
207 _In_z_ const char *_Mode);
294 _In_z_ const char *_Filename,
295 _In_z_ const char *_Mode);
335 _In_ size_t _ElementSize,
345 _In_z_ const char *_Filename,
443#ifndef _CRT_PERROR_DEFINED
444#define _CRT_PERROR_DEFINED
464 _In_z_ const char *_Command,
465 _In_z_ const char *_Mode);
505#ifndef _CRT_DIRECTORY_DEFINED
506#define _CRT_DIRECTORY_DEFINED
513 _In_z_ const char *_Filename);
520 _In_z_ const char *_OldFilename,
521 _In_z_ const char *_NewFilename);
528 _In_z_ const char *_Filename);
537 _In_z_ const char *_Filename);
669#if __MINGW_GNUC_PREREQ(4,4)
670#pragma push_macro("vsnprintf")
671#pragma push_macro("snprintf")
700#if __MINGW_GNUC_PREREQ(4,4)
701#pragma pop_macro("snprintf")
702#pragma pop_macro("vsnprintf")
706 #define vsnprintf _vsnprintf
709 #define snprintf _snprintf
721#define _set_printf_count_output(i)
722#define _get_printf_count_output() (FALSE)
728#ifndef _WSTDIO_DEFINED
731#define WEOF (wint_t)(0xFFFF)
739 const wchar_t *_Filename,
740 const wchar_t *_Mode);
747 _In_z_ const wchar_t *_Filename,
748 _In_z_ const wchar_t *_Mode,
830 _In_z_ const wchar_t *_Str,
844 _In_z_ const wchar_t *_Str);
888#if defined __cplusplus || defined _CRT_NON_CONFORMING_SWPRINTFS
935#pragma warning(disable:28719)
953#ifndef _CRT_NON_CONFORMING_SWPRINTFS
1017 _In_z_ const wchar_t *_Src,
1044 _In_ int _FileHandle,
1045 _In_z_ const wchar_t *_Mode);
1052 _In_z_ const wchar_t *_Filename,
1053 _In_z_ const wchar_t *_Mode);
1060 _In_z_ const wchar_t *_Filename,
1061 _In_z_ const wchar_t *_Mode,
1064#ifndef _CRT_WPERROR_DEFINED
1065#define _CRT_WPERROR_DEFINED
1078 _In_z_ const wchar_t *_Command,
1079 _In_z_ const wchar_t *_Mode);
1081#if !defined(NO_OLDNAMES) && !defined(wpopen)
1082#define wpopen _wpopen
1090 _In_z_ const wchar_t *_Filename);
1121#undef _CRT_GETPUTWCHAR_NOINLINE
1123#if !defined(__cplusplus) || defined(_CRT_GETPUTWCHAR_NOINLINE)
1124#define getwchar() fgetwc(stdin)
1125#define putwchar(_c) fputwc((_c),stdout)
1131#define getwc(_stm) fgetwc(_stm)
1132#define putwc(_c,_stm) fputwc(_c,_stm)
1133#define _putwc_nolock(_c,_stm) _fputwc_nolock(_c,_stm)
1134#define _getwc_nolock(_stm) _fgetwc_nolock(_stm)
1136#define _WSTDIO_DEFINED
1139#define _STDIO_DEFINED
1142#define _fgetc_nolock(_stream) (--(_stream)->_cnt >= 0 ? 0xff & *(_stream)->_ptr++ : _filbuf(_stream))
1143#define _fputc_nolock(_c,_stream) (--(_stream)->_cnt >= 0 ? 0xff & (*(_stream)->_ptr++ = (char)(_c)) : _flsbuf((_c),(_stream)))
1144#define _getc_nolock(_stream) _fgetc_nolock(_stream)
1145#define _putc_nolock(_c,_stream) _fputc_nolock(_c,_stream)
1146#define _getchar_nolock() _getc_nolock(stdin)
1147#define _putchar_nolock(_c) _putc_nolock((_c),stdout)
1148#define _getwchar_nolock() _getwc_nolock(stdin)
1149#define _putwchar_nolock(_c) _putwc_nolock((_c),stdout)
1183 _In_ size_t _ElementSize,
1239#if !defined(NO_OLDNAMES) || !defined(_POSIX)
1241#define P_tmpdir _P_tmpdir
1242#define SYS_OPEN _SYS_OPEN
1262 _In_ int _FileHandle,
#define __MINGW_EXTENSION
#define _Check_return_opt_
#define _CRT_INSECURE_DEPRECATE_CORE(_Replacement)
#define _CRT_NONSTDC_DEPRECATE(_Replacement)
_Check_return_opt_ _CRTIMP int __cdecl _putw(_In_ int _Word, _Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl getw(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fsetpos(_Inout_ FILE *_File, _In_ const fpos_t *_Pos)
_CRTIMP char *__cdecl tmpnam(_Pre_maybenull_ _Post_z_ char *_Buffer)
_Check_return_ _CRTIMP FILE *__cdecl freopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode, _Inout_ FILE *_File)
__MINGW_EXTENSION typedef long long _off64_t
_CRTIMP int __cdecl _swprintf(wchar_t *_Dest, const wchar_t *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl _fputchar(_In_ int _Ch)
_Check_return_opt_ _CRTIMP int __cdecl _fseek_nolock(_Inout_ FILE *_File, _In_ long _Offset, _In_ int _Origin)
_Check_return_opt_ _CRTIMP int __cdecl fgetc(_Inout_ FILE *_File)
int __cdecl vfscanf(FILE *__restrict__ fp, const char *Format, va_list argp)
_Check_return_ _CRTIMP int __cdecl _filbuf(_Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl _getw(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP wint_t __cdecl _fgetwc_nolock(_Inout_ FILE *_File)
_CRTIMP char *__cdecl tempnam(_In_opt_z_ const char *_Directory, _In_opt_z_ const char *_FilePrefix)
_Check_return_ _CRTIMP long __cdecl _ftell_nolock(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl vwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_ _CRTIMP int __cdecl ferror(_In_ FILE *_File)
_Check_return_opt_ _CRTIMP wint_t __cdecl fputwc(_In_ wchar_t _Ch, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl _pclose(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl vfwprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_ _CRTIMP int __cdecl getc(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP wint_t __cdecl _fputwc_nolock(_In_ wchar_t _Ch, _Inout_ FILE *_File)
_Check_return_opt_ __MINGW_EXTENSION _CRTIMP int __cdecl _fseeki64(_Inout_ FILE *_File, _In_ __int64 _Offset, _In_ int _Origin)
__MINGW_EXTENSION _Check_return_ _CRTIMP __int64 __cdecl _ftelli64_nolock(_Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl _wremove(_In_z_ const wchar_t *_Filename)
_CRTIMP int __cdecl _snwprintf(wchar_t *_Dest, size_t _Count, const wchar_t *_Format,...)
_CRTIMP int __cdecl snwprintf(wchar_t *s, size_t n, const wchar_t *format,...)
__MINGW_EXTENSION typedef long long fpos_t
_CRTIMP void __cdecl rewind(_Inout_ FILE *_File)
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
_Check_return_opt_ _CRTIMP int __cdecl fputchar(_In_ int _Ch)
_Check_return_opt_ _CRTIMP int __cdecl fcloseall(void)
_Check_return_ _CRTIMP char *__cdecl _tempnam(_In_opt_z_ const char *_DirName, _In_opt_z_ const char *_FilePrefix)
_Check_return_ _CRTIMP int __cdecl swscanf(_In_z_ const wchar_t *_Src, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
_Check_return_opt_ _CRTIMP size_t __cdecl _fwrite_nolock(_In_reads_bytes_(_Size *_Count) const void *_DstBuf, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fgetpos(_Inout_ FILE *_File, _Out_ fpos_t *_Pos)
_Check_return_ _CRTIMP int __cdecl _fileno(_In_ FILE *_File)
_Check_return_opt_ _CRTIMP wint_t __cdecl _fputwchar(_In_ wchar_t _Ch)
_CRTIMP wchar_t *__cdecl _wtmpnam(_Pre_maybenull_ _Post_z_ wchar_t *_Buffer)
_Check_return_ _CRTIMP FILE *__cdecl _wfsopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode, _In_ int _ShFlag)
_Check_return_opt_ _CRTIMP int __cdecl flushall(void)
_Check_return_ _CRTIMP FILE *__cdecl _wpopen(_In_z_ const wchar_t *_Command, _In_z_ const wchar_t *_Mode)
_Check_return_ _CRTIMP int __cdecl rmtmp(void)
_Check_return_opt_ _CRTIMP int __cdecl puts(_In_z_ const char *_Str)
_Check_return_opt_ _CRTIMP int __cdecl _snwscanf(_In_reads_(_MaxCount) _Pre_z_ const wchar_t *_Src, _In_ size_t _MaxCount, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
_Check_return_ _CRTIMP int __cdecl scanf(_In_z_ _Scanf_format_string_ const char *_Format,...)
_Check_return_ _CRTIMP int __cdecl _vscprintf(_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
int __cdecl vsscanf(const char *__restrict__ _Str, const char *__restrict__ Format, va_list argp)
_Check_return_opt_ _CRTIMP int __cdecl _fcloseall(void)
_Check_return_opt_ _CRTIMP wint_t __cdecl _fgetwchar(void)
_Check_return_opt_ _CRTIMP int __cdecl putw(_In_ int _Ch, _Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl feof(_In_ FILE *_File)
_Check_return_opt_ _CRTIMP_ALT int __cdecl ungetc(_In_ int _Ch, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fputs(_In_z_ const char *_Str, _Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl _scprintf(_In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_ _CRTIMP int __cdecl fwscanf(_Inout_ FILE *_File, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
_Check_return_ _CRTIMP int __cdecl fscanf(_Inout_ FILE *_File, _In_z_ _Scanf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP unsigned int __cdecl _set_output_format(_In_ unsigned int _Format)
_Check_return_opt_ _CRTIMP int __cdecl _swprintf_c(_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_CRTIMP void __cdecl _unlock_file(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl _wfopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode)
_CRTIMP int __cdecl _get_printf_count_output(void)
_Check_return_ _CRTIMP FILE *__cdecl _wfdopen(_In_ int _FileHandle, _In_z_ const wchar_t *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP unsigned int __cdecl _get_output_format(void)
int __cdecl vscanf(const char *__restrict__ Format, va_list argp)
_Check_return_ _CRTIMP int __cdecl getchar(void)
_Check_return_opt_ _CRTIMP int __cdecl _snscanf(_In_reads_bytes_(_MaxCount) _Pre_z_ const char *_Src, _In_ size_t _MaxCount, _In_z_ _Scanf_format_string_ const char *_Format,...)
static _Check_return_opt_ int __cdecl vswprintf(_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _flushall(void)
_Check_return_opt_ _CRTIMP int __cdecl _vswprintf_c(_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl fflush(_Inout_opt_ FILE *_File)
_Check_return_opt_ __MINGW_EXTENSION _CRTIMP int __cdecl _fseeki64_nolock(_Inout_ FILE *_File, _In_ __int64 _Offset, _In_ int _Origin)
_Check_return_ _CRTIMP int __cdecl _unlink(_In_z_ const char *_Filename)
_CRTIMP void __cdecl _wperror(_In_opt_z_ const wchar_t *_ErrMsg)
_Check_return_ _CRTIMP int __cdecl _scwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_CRTIMP FILE *__cdecl __iob_func(void)
_Check_return_opt_ _CRTIMP wint_t __cdecl _ungetwc_nolock(_In_ wint_t _Ch, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP size_t __cdecl _fread_nolock(_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl _wfreopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode, _Inout_ FILE *_OldFile)
_Check_return_opt_ _CRTIMP int __cdecl _fgetchar(void)
_Check_return_ _CRTIMP FILE *__cdecl fdopen(_In_ int _FileHandle, _In_z_ const char *_Format)
_Check_return_opt_ _CRTIMP size_t __cdecl fread(_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl putc(_In_ int _Ch, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fputc(_In_ int _Ch, _Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl rename(_In_z_ const char *_OldFilename, _In_z_ const char *_NewFilename)
_CRTIMP int __cdecl _vsnwprintf(wchar_t *_Dest, size_t _Count, const wchar_t *_Format, va_list _Args)
_Check_return_opt_ _CRTIMP int __cdecl _fclose_nolock(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl _ungetc_nolock(_In_ int _Ch, _Inout_ FILE *_File)
__CRT_INLINE int __cdecl vsnwprintf(wchar_t *s, size_t n, const wchar_t *format, va_list arg)
__MINGW_EXTENSION _Check_return_ _CRTIMP __int64 __cdecl _ftelli64(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl _rmtmp(void)
_Check_return_opt_ _CRTIMP int __cdecl fseek(_Inout_ FILE *_File, _In_ long _Offset, _In_ int _Origin)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl _setmaxstdio(_In_ int _Max)
_Check_return_ _CRTIMP FILE *__cdecl _fdopen(_In_ int _FileHandle, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fwprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_CRTIMP int __cdecl _vswprintf(wchar_t *_Dest, const wchar_t *_Format, va_list _Args)
_Check_return_ _CRTIMP long __cdecl ftell(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP size_t __cdecl fwrite(_In_reads_bytes_(_Size *_Count) const void *_Str, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl putchar(_In_ int _Ch)
_CRTIMP void __cdecl setbuf(_Inout_ FILE *_File, _Inout_updates_opt_(BUFSIZ) _Post_readable_size_(0) char *_Buffer)
_CRTIMP void __cdecl _lock_file(_Inout_ FILE *_File)
_CRTIMP int __cdecl vswscanf(const wchar_t *, const wchar_t *, va_list)
_CRTIMP char *__cdecl gets(char *_Buffer)
_Check_return_opt_ _CRTIMP int __cdecl fgetchar(void)
_CRTIMP int __cdecl _set_printf_count_output(_In_ int _Value)
_Check_return_opt_ _CRTIMP wint_t __cdecl fgetwc(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl vprintf(_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
_Check_return_ _CRTIMP int __cdecl sscanf(_In_z_ const char *_Src, _In_z_ _Scanf_format_string_ const char *_Format,...)
_Check_return_ _CRTIMP FILE *__cdecl _fsopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode, _In_ int _ShFlag)
_CRTIMP wchar_t *__cdecl _getws(wchar_t *_String)
_Check_return_opt_ _CRTIMP int __cdecl _putws(_In_z_ const wchar_t *_Str)
_Check_return_ _CRTIMP wchar_t *__cdecl _wtempnam(_In_opt_z_ const wchar_t *_Directory, _In_opt_z_ const wchar_t *_FilePrefix)
__MINGW_EXTENSION typedef long long off64_t
_Check_return_ _CRTIMP FILE *__cdecl tmpfile(void)
_CRTIMP int __cdecl vfwscanf(FILE *, const wchar_t *, va_list)
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
_Check_return_ _CRTIMP int __cdecl _vscwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_ _CRTIMP FILE *__cdecl _popen(_In_z_ const char *_Command, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP wint_t __cdecl ungetwc(_In_ wint_t _Ch, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fputws(_In_z_ const wchar_t *_Str, _Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl wscanf(_In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
_Check_return_ _CRTIMP int __cdecl _getmaxstdio(void)
_Check_return_opt_ _CRTIMP wchar_t *__cdecl fgetws(_Out_writes_z_(_SizeInWords) wchar_t *_Dst, _In_ int _SizeInWords, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl setvbuf(_Inout_ FILE *_File, _Inout_updates_opt_z_(_Size) char *_Buf, _In_ int _Mode, _In_ size_t _Size)
_CRTIMP int __cdecl vwscanf(const wchar_t *, va_list)
_CRTIMP void __cdecl clearerr(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl _fflush_nolock(_Inout_opt_ FILE *_File)
_Check_return_ _Ret_maybenull_ _In_ size_t _Count
_Check_return_ _Ret_maybenull_ _In_ size_t _In_ size_t _Offset
_Check_return_ _Ret_maybenull_ _In_ size_t _In_ size_t _Size
#define sprintf(buf, format,...)
#define _In_reads_bytes_(s)
#define _Out_writes_z_(s)
#define _Post_readable_size_(s)
#define _Inout_updates_opt_z_(s)
#define _Out_writes_bytes_(s)
#define _Scanf_format_string_
#define _Inout_updates_opt_(s)
#define _Printf_format_string_
_Check_return_ wchar_t _Ch
_In_ size_t _In_z_ _Printf_format_string_ const char * _Format
#define _CRT_INSECURE_DEPRECATE(_Replacement)