26 #define _NFILE _NSTREAM_
34 #define _IOB_ENTRIES 3
44 #define L_tmpnam 260 // _MAX_PATH
45 #if __STDC_WANT_SECURE_LIB__
46 #define L_tmpnam_s L_tmpnam
58 #define FILENAME_MAX 260
61 #define TMP_MAX _CRT_INT_MAX
62 #if __STDC_WANT_SECURE_LIB__
63 #define TMP_MAX_S TMP_MAX
64 #define _TMP_MAX_S TMP_MAX
72 #if _CRT_FUNCTIONS_REQUIRED
88 #if __STDC_WANT_SECURE_LIB__
155 _In_ int _FileHandle,
208 _In_z_ char const* _FileName,
228 _In_z_ char const* _Buffer,
235 _In_ size_t _ElementSize,
236 _In_ size_t _ElementCount,
243 _In_z_ char const* _FileName,
250 _In_z_ char const* _FileName,
274 _In_ __int64 _Offset,
293 _In_ size_t _ElementSize,
294 _In_ size_t _ElementCount,
323 #if defined _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
333 _In_z_ char const* _Command,
353 _In_z_ char const* _Buffer
364 _In_z_ char const* _FileName
369 _In_z_ char const* _OldFileName,
370 _In_z_ char const* _NewFileName
374 _In_z_ char const* _FileName
377 #if _CRT_INTERNAL_NONSTDC_NAMES
381 _In_z_ char const* _FileName
413 #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
414 #pragma push_macro("_tempnam")
424 #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
425 #pragma pop_macro("_tempnam")
437 #pragma warning(push)
438 #pragma warning(disable: 28726) // __WARNING_BANNED_API_USAGEL2
470 _ACRTIMP int __cdecl _fclose_nolock(
476 _ACRTIMP int __cdecl _fflush_nolock(
496 _In_ size_t _ElementSize,
497 _In_ size_t _ElementCount,
503 _ACRTIMP size_t __cdecl _fread_nolock_s(
505 _In_range_(>=, _ElementSize * _ElementCount)
size_t _BufferSize,
506 _In_ size_t _ElementSize,
507 _In_ size_t _ElementCount,
521 _In_ __int64 _Offset,
538 _In_ size_t _ElementSize,
539 _In_ size_t _ElementCount,
560 #define _getchar_nolock() _getc_nolock(stdin)
561 #define _putchar_nolock(_Ch) _putc_nolock(_Ch, stdout)
562 #define _getwchar_nolock() _getwc_nolock(stdin)
563 #define _putwchar_nolock(_Ch) _putwc_nolock(_Ch, stdout)
567 #if defined _CRT_DISABLE_PERFCRIT_LOCKS && !defined _DLL
568 #define fclose(_Stream) _fclose_nolock(_Stream)
569 #define fflush(_Stream) _fflush_nolock(_Stream)
570 #define fgetc(_Stream) _fgetc_nolock(_Stream)
571 #define fread(_DstBuf, _ElementSize, _Count, _Stream) _fread_nolock(_DstBuf, _ElementSize, _Count, _Stream)
572 #define fread_s(_DstBuf, _DstSize, _ElementSize, _Count, _Stream) _fread_nolock_s(_DstBuf, _DstSize, _ElementSize, _Count, _Stream)
573 #define fseek(_Stream, _Offset, _Origin) _fseek_nolock(_Stream, _Offset, _Origin)
574 #define _fseeki64(_Stream, _Offset, _Origin) _fseeki64_nolock(_Stream, _Offset, _Origin)
575 #define ftell(_Stream) _ftell_nolock(_Stream)
576 #define _ftelli64(_Stream) _ftelli64_nolock(_Stream)
577 #define fwrite(_SrcBuf, _ElementSize, _Count, _Stream) _fwrite_nolock(_SrcBuf, _ElementSize, _Count, _Stream)
578 #define getc(_Stream) _getc_nolock(_Stream)
579 #define putc(_Ch, _Stream) _fputc(_Ch, _Stream)
580 #define ungetc(_Ch, _Stream) _ungetc_nolock(_Ch, _Stream)
587 #ifdef _CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY
590 #define _commode (*__p__commode())
596 #if defined _M_CEE_MIXED
597 #pragma managed(push, off)
606 _In_ unsigned __int64 _Options,
614 _In_ unsigned __int64 _Options,
622 _ACRTIMP int __cdecl __stdio_common_vfprintf_p(
623 _In_ unsigned __int64 _Options,
633 _In_z_ char const* const _Format,
637 #if defined _NO_CRT_STDIO_INLINE
651 #if defined _NO_CRT_STDIO_INLINE
662 _In_z_ char const*
const _Format,
666 #if defined _NO_CRT_STDIO_INLINE
674 #if __STDC_WANT_SECURE_LIB__
682 #if defined _NO_CRT_STDIO_INLINE
695 _In_z_ char const*
const _Format,
699 #if defined _NO_CRT_STDIO_INLINE
713 #if defined _NO_CRT_STDIO_INLINE
727 #if defined _NO_CRT_STDIO_INLINE
740 #if defined _NO_CRT_STDIO_INLINE
754 #if defined _NO_CRT_STDIO_INLINE
762 #if __STDC_WANT_SECURE_LIB__
769 #if defined _NO_CRT_STDIO_INLINE
785 #if defined _NO_CRT_STDIO_INLINE
798 #if defined _NO_CRT_STDIO_INLINE
812 #if defined _NO_CRT_STDIO_INLINE
819 _Result =
_vfprintf_l(_Stream, _Format, _Locale, _ArgList);
830 #if defined _NO_CRT_STDIO_INLINE
855 #if defined _NO_CRT_STDIO_INLINE
862 _Result =
_vfprintf_s_l(_Stream, _Format, _Locale, _ArgList);
868 #if __STDC_WANT_SECURE_LIB__
875 #if defined _NO_CRT_STDIO_INLINE
896 #if defined _NO_CRT_STDIO_INLINE
903 _Result =
_vfprintf_p_l(_Stream, _Format, _Locale, _ArgList);
914 #if defined _NO_CRT_STDIO_INLINE
932 #if defined _NO_CRT_STDIO_INLINE
949 #if defined _NO_CRT_STDIO_INLINE
967 #if defined _NO_CRT_STDIO_INLINE
980 #if __STDC_WANT_SECURE_LIB__
986 #if defined _NO_CRT_STDIO_INLINE
1006 #if defined _NO_CRT_STDIO_INLINE
1023 #if defined _NO_CRT_STDIO_INLINE
1043 _In_ unsigned __int64 _Options,
1057 #if defined _NO_CRT_STDIO_INLINE
1063 _Stream, _Format, _Locale, _ArgList);
1073 #if defined _NO_CRT_STDIO_INLINE
1088 #if defined _NO_CRT_STDIO_INLINE
1094 _Stream, _Format, _Locale, _ArgList);
1099 #if __STDC_WANT_SECURE_LIB__
1107 #if defined _NO_CRT_STDIO_INLINE
1123 #if defined _NO_CRT_STDIO_INLINE
1136 #if defined _NO_CRT_STDIO_INLINE
1150 #if defined _NO_CRT_STDIO_INLINE
1158 #if __STDC_WANT_SECURE_LIB__
1165 #if defined _NO_CRT_STDIO_INLINE
1181 #if defined _NO_CRT_STDIO_INLINE // SCANF
1199 #if defined _NO_CRT_STDIO_INLINE // SCANF
1218 #if defined _NO_CRT_STDIO_INLINE // SCANF
1225 _Result =
_vfscanf_s_l(_Stream, _Format, _Locale, _ArgList);
1231 #if __STDC_WANT_SECURE_LIB__
1238 #if defined _NO_CRT_STDIO_INLINE // SCANF
1258 #if defined _NO_CRT_STDIO_INLINE // SCANF
1275 #if defined _NO_CRT_STDIO_INLINE // SCANF
1293 #if defined _NO_CRT_STDIO_INLINE // SCANF
1306 #if __STDC_WANT_SECURE_LIB__
1312 #if defined _NO_CRT_STDIO_INLINE // SCANF
1335 _ACRTIMP int __cdecl __stdio_common_vsprintf(
1336 _In_ unsigned __int64 _Options,
1345 _ACRTIMP int __cdecl __stdio_common_vsprintf_s(
1346 _In_ unsigned __int64 _Options,
1348 _In_ size_t _BufferCount,
1355 _ACRTIMP int __cdecl __stdio_common_vsnprintf_s(
1356 _In_ unsigned __int64 _Options,
1358 _In_ size_t _BufferCount,
1359 _In_ size_t _MaxCount,
1366 _ACRTIMP int __cdecl __stdio_common_vsprintf_p(
1367 _In_ unsigned __int64 _Options,
1369 _In_ size_t _BufferCount,
1379 _In_ size_t const _BufferCount,
1384 #if defined _NO_CRT_STDIO_INLINE
1388 int const _Result = __stdio_common_vsprintf(
1390 _Buffer, _BufferCount, _Format, _Locale, _ArgList);
1392 return _Result < 0 ? -1 :
_Result;
1400 _In_ size_t const _BufferCount,
1404 #if defined _NO_CRT_STDIO_INLINE
1408 #pragma warning(push)
1409 #pragma warning(disable: 4996) // Deprecation
1410 return _vsnprintf_l(_Buffer, _BufferCount, _Format,
NULL, _ArgList);
1411 #pragma warning(pop)
1415 #if defined vsnprintf
1419 #pragma warning(push, 1)
1420 #pragma warning(1: 4005)
1421 #define vsnprintf Do not define vsnprintf as a macro
1422 #pragma warning(pop)
1423 #error Macro definition of vsnprintf conflicts with Standard Library function declaration
1430 _In_ size_t const _BufferCount,
1434 #if defined _NO_CRT_STDIO_INLINE
1438 int const _Result = __stdio_common_vsprintf(
1440 _Buffer, _BufferCount, _Format,
NULL, _ArgList);
1442 return _Result < 0 ? -1 :
_Result;
1450 _In_z_ char const* const _Format,
1454 #if defined _NO_CRT_STDIO_INLINE
1458 #pragma warning(push)
1459 #pragma warning(disable: 4996) // Deprecation
1460 return _vsnprintf_l(_Buffer, (
size_t)-1, _Format, _Locale, _ArgList);
1461 #pragma warning(pop)
1472 #if defined _NO_CRT_STDIO_INLINE
1476 #pragma warning(push)
1477 #pragma warning(disable: 4996) // Deprecation
1478 return _vsnprintf_l(_Buffer, (
size_t)-1, _Format,
NULL, _ArgList);
1479 #pragma warning(pop)
1487 _In_ size_t const _BufferCount,
1492 #if defined _NO_CRT_STDIO_INLINE
1496 int const _Result = __stdio_common_vsprintf_s(
1498 _Buffer, _BufferCount, _Format, _Locale, _ArgList);
1500 return _Result < 0 ? -1 :
_Result;
1504 #if __STDC_WANT_SECURE_LIB__
1510 _In_ size_t const _BufferCount,
1514 #if defined _NO_CRT_STDIO_INLINE
1518 return _vsprintf_s_l(_Buffer, _BufferCount, _Format,
NULL, _ArgList);
1536 _In_ size_t const _BufferCount,
1541 #if defined _NO_CRT_STDIO_INLINE
1545 int const _Result = __stdio_common_vsprintf_p(
1547 _Buffer, _BufferCount, _Format, _Locale, _ArgList);
1549 return _Result < 0 ? -1 :
_Result;
1557 _In_ size_t const _BufferCount,
1561 #if defined _NO_CRT_STDIO_INLINE
1565 return _vsprintf_p_l(_Buffer, _BufferCount, _Format,
NULL, _ArgList);
1573 _In_ size_t const _BufferCount,
1574 _In_ size_t const _MaxCount,
1579 #if defined _NO_CRT_STDIO_INLINE
1583 int const _Result = __stdio_common_vsnprintf_s(
1585 _Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList);
1587 return _Result < 0 ? -1 :
_Result;
1595 _In_ size_t const _BufferCount,
1596 _In_ size_t const _MaxCount,
1600 #if defined _NO_CRT_STDIO_INLINE
1604 return _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,
NULL, _ArgList);
1612 _In_ size_t, _BufferCount,
1617 #if __STDC_WANT_SECURE_LIB__
1623 _In_ size_t const _BufferCount,
1624 _In_ size_t const _MaxCount,
1628 #if defined _NO_CRT_STDIO_INLINE
1632 return _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,
NULL, _ArgList);
1640 _In_ size_t, _BufferCount,
1653 #if defined _NO_CRT_STDIO_INLINE
1657 int const _Result = __stdio_common_vsprintf(
1659 NULL, 0, _Format, _Locale, _ArgList);
1661 return _Result < 0 ? -1 :
_Result;
1670 #if defined _NO_CRT_STDIO_INLINE
1674 return _vscprintf_l(_Format,
NULL, _ArgList);
1684 #if defined _NO_CRT_STDIO_INLINE
1688 int const _Result = __stdio_common_vsprintf_p(
1690 NULL, 0, _Format, _Locale, _ArgList);
1692 return _Result < 0 ? -1 :
_Result;
1701 #if defined _NO_CRT_STDIO_INLINE
1705 return _vscprintf_p_l(_Format,
NULL, _ArgList);
1712 _In_ size_t const _BufferCount,
1717 #if defined _NO_CRT_STDIO_INLINE
1721 int const _Result = __stdio_common_vsprintf(
1723 _Buffer, _BufferCount, _Format, _Locale, _ArgList);
1725 return _Result < 0 ? -1 :
_Result;
1733 _In_ size_t const _BufferCount,
1737 #if defined _NO_CRT_STDIO_INLINE
1741 return _vsnprintf_c_l(_Buffer, _BufferCount, _Format,
NULL, _ArgList);
1752 #if defined _NO_CRT_STDIO_INLINE
1760 #pragma warning(push)
1761 #pragma warning(disable: 4996) // Deprecation
1762 _Result = _vsprintf_l(_Buffer, _Format, _Locale, _ArgList);
1763 #pragma warning(pop)
1776 #if defined _NO_CRT_STDIO_INLINE
1784 #pragma warning(push)
1785 #pragma warning(disable: 4996) // Deprecation
1786 _Result = _vsprintf_l(_Buffer, _Format,
NULL, _ArgList);
1787 #pragma warning(pop)
1794 #pragma warning(push)
1795 #pragma warning(disable: 4996)
1796 #pragma warning(disable: 28719) // __WARNING_BANNED_API_USAGE
1797 #pragma warning(disable: 28726) // __WARNING_BANNED_API_USAGEL2
1804 #pragma warning(pop)
1810 _In_ size_t const _BufferCount,
1814 #if defined _NO_CRT_STDIO_INLINE
1821 _Result = _vsprintf_s_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);
1827 #if __STDC_WANT_SECURE_LIB__
1833 _In_ size_t const _BufferCount,
1836 #if defined _NO_CRT_STDIO_INLINE
1843 _Result = _vsprintf_s_l(_Buffer, _BufferCount, _Format,
NULL, _ArgList);
1853 int, sprintf_s, vsprintf_s,
1862 _In_ size_t const _BufferCount,
1866 #if defined _NO_CRT_STDIO_INLINE
1873 _Result = _vsprintf_p_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);
1883 _In_ size_t const _BufferCount,
1886 #if defined _NO_CRT_STDIO_INLINE
1893 _Result = _vsprintf_p_l(_Buffer, _BufferCount, _Format,
NULL, _ArgList);
1903 _In_ size_t const _BufferCount,
1907 #if defined _NO_CRT_STDIO_INLINE
1915 #pragma warning(push)
1916 #pragma warning(disable: 4996) // Deprecation
1917 _Result = _vsnprintf_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);
1918 #pragma warning(pop)
1925 #if defined snprintf
1929 #pragma warning(push, 1)
1930 #pragma warning(1: 4005)
1931 #define snprintf Do not define snprintf as a macro
1932 #pragma warning(pop)
1933 #error Macro definition of snprintf conflicts with Standard Library function declaration
1940 _In_ size_t const _BufferCount,
1943 #if defined _NO_CRT_STDIO_INLINE
1950 #pragma warning(suppress:28719) // 28719
1951 _Result = vsnprintf(_Buffer, _BufferCount, _Format, _ArgList);
1960 _In_ size_t const _BufferCount,
1963 #if defined _NO_CRT_STDIO_INLINE
1970 #pragma warning(suppress:28719) // 28719
1971 _Result = _vsnprintf(_Buffer, _BufferCount, _Format, _ArgList);
1982 _In_ size_t, _BufferCount,
1990 _In_ size_t const _BufferCount,
1994 #if defined _NO_CRT_STDIO_INLINE
2001 _Result = _vsnprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);
2011 _In_ size_t const _BufferCount,
2014 #if defined _NO_CRT_STDIO_INLINE
2021 _Result = _vsnprintf_c_l(_Buffer, _BufferCount, _Format,
NULL, _ArgList);
2031 _In_ size_t const _BufferCount,
2032 _In_ size_t const _MaxCount,
2036 #if defined _NO_CRT_STDIO_INLINE
2043 _Result = _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList);
2053 _In_ size_t const _BufferCount,
2054 _In_ size_t const _MaxCount,
2057 #if defined _NO_CRT_STDIO_INLINE
2064 _Result = _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,
NULL, _ArgList);
2072 int, _snprintf_s, _vsnprintf_s,
2074 _In_ size_t, _BufferCount,
2083 #if defined _NO_CRT_STDIO_INLINE
2090 _Result = _vscprintf_l(_Format, _Locale, _ArgList);
2100 #if defined _NO_CRT_STDIO_INLINE
2107 _Result = _vscprintf_l(_Format,
NULL, _ArgList);
2118 #if defined _NO_CRT_STDIO_INLINE
2125 _Result = _vscprintf_p_l(_Format, _Locale, _ArgList);
2135 #if defined _NO_CRT_STDIO_INLINE
2142 _Result = _vscprintf_p(_Format, _ArgList);
2153 _ACRTIMP int __cdecl __stdio_common_vsscanf(
2154 _In_ unsigned __int64 _Options,
2156 _In_ size_t _BufferCount,
2164 _In_z_ char const*
const _Buffer,
2169 #if defined _NO_CRT_STDIO_INLINE
2173 return __stdio_common_vsscanf(
2175 _Buffer, (
size_t)-1, _Format, _Locale, _ArgList);
2181 _In_z_ char const*
const _Buffer,
2185 #if defined _NO_CRT_STDIO_INLINE
2189 return _vsscanf_l(_Buffer, _Format,
NULL, _ArgList);
2195 _In_z_ char const*
const _Buffer,
2200 #if defined _NO_CRT_STDIO_INLINE
2204 return __stdio_common_vsscanf(
2206 _Buffer, (
size_t)-1, _Format, _Locale, _ArgList);
2210 #if __STDC_WANT_SECURE_LIB__
2212 #pragma warning(push)
2213 #pragma warning(disable:6530)
2217 _In_z_ char const*
const _Buffer,
2221 #if defined _NO_CRT_STDIO_INLINE
2225 return _vsscanf_s_l(_Buffer, _Format,
NULL, _ArgList);
2231 _In_z_ char const, _Buffer,
2236 #pragma warning(pop)
2242 _In_z_ char const* const _Buffer,
2246 #if defined _NO_CRT_STDIO_INLINE // SCANF
2253 _Result = _vsscanf_l(_Buffer, _Format, _Locale, _ArgList);
2261 _In_z_ char const* const _Buffer,
2264 #if defined _NO_CRT_STDIO_INLINE // SCANF
2271 _Result = _vsscanf_l(_Buffer, _Format,
NULL, _ArgList);
2279 _In_z_ char const*
const _Buffer,
2283 #if defined _NO_CRT_STDIO_INLINE // SCANF
2290 _Result = _vsscanf_s_l(_Buffer, _Format, _Locale, _ArgList);
2296 #if __STDC_WANT_SECURE_LIB__
2300 _In_z_ char const*
const _Buffer,
2303 #if defined _NO_CRT_STDIO_INLINE // SCANF
2311 #pragma warning(push)
2312 #pragma warning(disable: 4996) // Deprecation
2313 _Result = vsscanf_s(_Buffer, _Format, _ArgList);
2314 #pragma warning(pop)
2323 #pragma warning(push)
2324 #pragma warning(disable:6530)
2329 _In_ size_t const _BufferCount,
2333 #if defined _NO_CRT_STDIO_INLINE // SCANF
2341 _Result = __stdio_common_vsscanf(
2343 _Buffer, _BufferCount, _Format, _Locale, _ArgList);
2353 _In_ size_t const _BufferCount,
2356 #if defined _NO_CRT_STDIO_INLINE // SCANF
2364 _Result = __stdio_common_vsscanf(
2366 _Buffer, _BufferCount, _Format,
NULL, _ArgList);
2377 _In_ size_t const _BufferCount,
2381 #if defined _NO_CRT_STDIO_INLINE // SCANF
2389 _Result = __stdio_common_vsscanf(
2391 _Buffer, _BufferCount, _Format, _Locale, _ArgList);
2401 _In_ size_t const _BufferCount,
2404 #if defined _NO_CRT_STDIO_INLINE // SCANF
2412 _Result = __stdio_common_vsscanf(
2414 _Buffer, _BufferCount, _Format,
NULL, _ArgList);
2421 #pragma warning(pop)
2423 #if defined _M_CEE_MIXED
2424 #pragma managed(pop)
2434 #if _CRT_INTERNAL_NONSTDC_NAMES
2436 #define SYS_OPEN _SYS_OPEN
2438 #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
2439 #pragma push_macro("tempnam")
2449 #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
2450 #pragma pop_macro("tempnam")
2463 #endif // _CRT_INTERNAL_NONSTDC_NAMES
2464 #endif // _CRT_FUNCTIONS_REQUIRED
_ACRTIMP int __cdecl _unlink(_In_z_ char const *_FileName)
#define _Out_
Definition: sal.h:342
_Check_return_ _ACRTIMP int __cdecl getchar(void)
return
Definition: corecrt_memcpy_s.h:60
#define __RETURN_POLICY_SAME(_FunctionCall)
Definition: corecrt.h:1782
#define stdout
Definition: corecrt_wstdio.h:34
Definition: corecrt.h:489
_Check_return_ _ACRTIMP __int64 __cdecl _ftelli64_nolock(_Inout_ FILE *_Stream)
_Check_return_opt_ _ACRTIMP int __cdecl puts(_In_z_ char const *_Buffer)
_ACRTIMP int __cdecl unlink(_In_z_ char const *_FileName)
#define _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS
Definition: corecrt_stdio_config.h:104
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1_ARGLIST(_ReturnType, _FuncName, _VFuncName, _DstType, _Dst, _TType1, _TArg1)
Definition: corecrt.h:700
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _fprintf_p(_Inout_ FILE *const _Stream, _In_z_ _Printf_format_string_ char const *const _Format,...)
Definition: stdio.h:910
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3)
Definition: corecrt.h:694
_In_ rsize_t _Size
Definition: stdio.h:124
_Check_return_opt_ _ElementSize *_ElementCount void _In_ size_t _ElementSize
Definition: stdio.h:107
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL vprintf(_In_z_ _Printf_format_string_ char const *const _Format, va_list _ArgList)
Definition: stdio.h:736
#define _Out_opt_
Definition: sal.h:343
_Out_writes_opt_(_MaxCount)
#define _Out_writes_bytes_(size)
Definition: sal.h:347
#define _CRT_STDIO_INLINE
Definition: corecrt_stdio_config.h:22
_Pre_maybenull_ _Always_(_Post_z_)
__RETURN_POLICY_DST
Definition: stdio.h:441
#define _Check_return_opt_
Definition: corecrt.h:96
_Check_return_ _ACRTIMP int __cdecl _fileno(_In_ FILE *_Stream)
_Check_return_opt_ _ElementSize *_ElementCount void _In_ size_t _In_ size_t _Inout_ FILE * _Stream
Definition: stdio.h:107
_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,...)
Definition: stdio.h:963
_Check_return_opt_ _ACRTIMP int __cdecl putchar(_In_ int _Character)
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL vfprintf_s(_Inout_ FILE *const _Stream, _In_z_ _Printf_format_string_ char const *const _Format, va_list _ArgList)
Definition: stdio.h:677
_Check_return_ _ACRTIMP FILE *__cdecl _fsopen(_In_z_ char const *_FileName, _In_z_ char const *_Mode, _In_ int _ShFlag)
int errno_t
Definition: corecrt.h:476
_Check_return_wat_ _ACRTIMP errno_t __cdecl freopen_s(_Outptr_result_maybenull_ FILE **_Stream, _In_z_ char const *_FileName, _In_z_ char const *_Mode, _Inout_ FILE *_OldStream)
_ACRTIMP int __cdecl _set_printf_count_output(_In_ int _Value)
_Check_return_opt_ _ElementSize *_ElementCount void _In_range_(>=, _ElementSize *_ElementCount) size_t _BufferSize
_Check_return_ _DCRTIMP FILE *__cdecl _popen(_In_z_ char const *_Command, _In_z_ char const *_Mode)
#define _Check_return_wat_
Definition: corecrt.h:102
size_t rsize_t
Definition: corecrt.h:527
_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,...)
Definition: stdio.h:807
_ACRTIMP int __cdecl remove(_In_z_ char const *_FileName)
#define _In_reads_bytes_(size)
Definition: sal.h:318
_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, va_list _ArgList)
Definition: stdio.h:1082
_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, va_list _ArgList)
Definition: stdio.h:722
#define _Scanf_s_format_string_
Definition: sal.h:560
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL vfscanf(_Inout_ FILE *const _Stream, _In_z_ _Printf_format_string_ char const *const _Format, va_list _ArgList)
Definition: stdio.h:1068
#define EOF
Definition: stdio.h:36
__EMPTY_DECLSPEC
Definition: string.h:90
_Check_return_opt_ _ACRTIMP int __cdecl _setmaxstdio(_In_ int _Maximum)
#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
Definition: corecrt.h:1859
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:73
#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1)
Definition: corecrt.h:730
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL vscanf(_In_z_ _Printf_format_string_ char const *const _Format, va_list _ArgList)
Definition: stdio.h:1132
_Check_return_wat_ _ACRTIMP errno_t __cdecl tmpfile_s(_Out_opt_ _Deref_post_valid_ FILE **_Stream)
_In_ size_t _BufferCount
Definition: stdio.h:1338
#define _Outptr_result_maybenull_
Definition: sal.h:425
_Inout_ FILE _In_z_ _In_opt_ _locale_t va_list _ArgList
Definition: stdio.h:626
_Check_return_opt_ _ElementSize *_ElementCount void _In_ size_t _In_ size_t _ElementCount
Definition: stdio.h:107
_Check_return_ _ACRTIMP long __cdecl _ftell_nolock(_Inout_ FILE *_Stream)
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(char *, gets_s, char, _Buffer) _Check_return_ _ACRTIMP int __cdecl _getw(_Inout_ FILE *_Stream)
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL fscanf_s(_Inout_ FILE *const _Stream, _In_z_ _Scanf_s_format_string_ char const *const _Format,...)
Definition: stdio.h:1234
_Result
Definition: stdio.h:1188
_ACRTIMP int __cdecl __stdio_common_vfprintf_s(_In_ unsigned __int64 _Options, _Inout_ FILE *_Stream, _In_z_ _Printf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_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, va_list _ArgList)
Definition: stdio.h:1051
_Check_return_opt_ _ACRTIMP int __cdecl _fgetchar(void)
#define __CRTDECL
Definition: vcruntime.h:156
_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,...)
Definition: stdio.h:891
#define _Post_z_
Definition: sal.h:688
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL vfprintf(_Inout_ FILE *const _Stream, _In_z_ _Printf_format_string_ char const *const _Format, va_list _ArgList)
Definition: stdio.h:646
#define _Pre_maybenull_
Definition: sal.h:678
#define _In_opt_z_
Definition: sal.h:311
_Check_return_opt_ _ACRTIMP int __cdecl _fputchar(_In_ int _Character)
_Check_return_ _In_z_ _Scanf_format_string_ char const *const _Format
Definition: stdio.h:1197
#define _Check_return_
Definition: sal.h:554
_Check_return_ _ACRTIMP _CRTALLOCATOR char *__cdecl _tempnam(_In_opt_z_ char const *_DirectoryName, _In_opt_z_ char const *_FilePrefix)
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
#define _In_z_
Definition: sal.h:310
_Check_return_ _In_z_ char const * _Mode
Definition: stdio.h:210
__int64 fpos_t
Definition: stdio.h:68
#define _In_
Definition: sal.h:305
#define _Out_writes_bytes_to_(size, count)
Definition: sal.h:357
#define _Inout_opt_
Definition: sal.h:376
_Check_return_opt_ _ACRTIMP int __cdecl _fseeki64_nolock(_Inout_ FILE *_Stream, _In_ __int64 _Offset, _In_ int _Origin)
#define _CRT_INTERNAL_LOCAL_SCANF_OPTIONS
Definition: corecrt_stdio_config.h:105
#define _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR
Definition: corecrt_stdio_config.h:110
_ACRTIMP void __cdecl clearerr(_Inout_ FILE *_Stream)
#define _In_opt_
Definition: sal.h:306
_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, va_list _ArgList)
Definition: stdio.h:693
_In_ int _Base
Definition: time.h:323
_ACRTIMP void __cdecl _lock_file(_Inout_ FILE *_Stream)
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL vfscanf_s(_Inout_ FILE *const _Stream, _In_z_ _Printf_format_string_ char const *const _Format, va_list _ArgList)
Definition: stdio.h:1102
_Check_return_opt_ _ACRTIMP size_t __cdecl _fwrite_nolock(_In_reads_bytes_(_ElementSize *_ElementCount) void const *_Buffer, _In_ size_t _ElementSize, _In_ size_t _ElementCount, _Inout_ FILE *_Stream)
#define _DCRTIMP
Definition: corecrt.h:43
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vprintf_p(_In_z_ _Printf_format_string_ char const *const _Format, va_list _ArgList)
Definition: stdio.h:794
_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,...)
Definition: stdio.h:1002
_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, va_list _ArgList)
Definition: stdio.h:631
#define _Scanf_s_format_string_params_(x)
Definition: sal.h:565
#define BUFSIZ
Definition: stdio.h:18
_Check_return_opt_ _ElementSize *_ElementCount void * _Buffer
Definition: stdio.h:105
Definition: corecrt_wstdio.h:25
_Out_writes_z_(_BufferCount) char *_Buffer
_Check_return_opt_ _ACRTIMP int __cdecl _fseek_nolock(_Inout_ FILE *_Stream, _In_ long _Offset, _In_ int _Origin)
_Check_return_wat_ _ACRTIMP errno_t __cdecl clearerr_s(_Inout_ FILE *_Stream)
#define _CRTALLOCATOR
Definition: corecrt.h:56
_Check_return_ _ACRTIMP int __cdecl rename(_In_z_ char const *_OldFileName, _In_z_ char const *_NewFileName)
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL printf(_In_z_ _Printf_format_string_ char const *const _Format,...)
Definition: stdio.h:946
_Check_return_opt_ _ACRTIMP int __cdecl _getc_nolock(_Inout_ FILE *_Stream)
_In_ long _Offset
Definition: stdio.h:266
_ACRTIMP void __cdecl rewind(_Inout_ FILE *_Stream)
_ACRTIMP int __cdecl __stdio_common_vfscanf(_In_ unsigned __int64 _Options, _Inout_ FILE *_Stream, _In_z_ _Scanf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, va_list _Arglist)
#define _CRT_NONSTDC_DEPRECATE(_NewName)
Definition: corecrt.h:300
_Inout_updates_opt_(_Size) char *_Buffer
#define _Printf_format_string_
Definition: sal.h:558
_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, va_list _ArgList)
Definition: stdio.h:1118
_Check_return_opt_ _ACRTIMP errno_t __cdecl _get_stream_buffer_pointers(_In_ FILE *_Stream, _Out_opt_ char ***_Base, _Out_opt_ char ***_Pointer, _Out_opt_ int **_Count)
_In_reads_(_N) wchar_t const *_S2
_In_ int _MaxCount
Definition: stdio.h:194
_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,...)
Definition: stdio.h:1213
_Check_return_opt_ _ACRTIMP int __cdecl _putc_nolock(_In_ int _Character, _Inout_ FILE *_Stream)
_ACRTIMP void __cdecl setbuf(_Inout_ FILE *_Stream, _Inout_updates_opt_(BUFSIZ) _Post_readable_size_(0) char *_Buffer)
_ACRTIMP int __cdecl __stdio_common_vfprintf(_In_ unsigned __int64 _Options, _Inout_ FILE *_Stream, _In_z_ _Printf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_ _ACRTIMP FILE *__cdecl _fdopen(_In_ int _FileHandle, _In_z_ char const *_Mode)
_In_opt_z_ wchar_t const _In_opt_z_ wchar_t const * _FileName
Definition: corecrt.h:253
_Check_return_opt_ _ACRTIMP size_t __cdecl _fread_nolock(_Out_writes_bytes_(_ElementSize *_ElementCount) void *_Buffer, _In_ size_t _ElementSize, _In_ size_t _ElementCount, _Inout_ FILE *_Stream)
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
Definition: corecrt.h:693
_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, va_list _ArgList)
Definition: stdio.h:749
_ACRTIMP int __cdecl _get_printf_count_output(void)
_ACRTIMP void __cdecl _unlock_file(_Inout_ FILE *_Stream)
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL fprintf_s(_Inout_ FILE *const _Stream, _In_z_ _Printf_format_string_ char const *const _Format,...)
Definition: stdio.h:871
#define _CRT_END_C_HEADER
Definition: vcruntime.h:76
_In_ long _In_ int _Origin
Definition: stdio.h:266
_Check_return_ _ACRTIMP int __cdecl feof(_In_ FILE *_Stream)
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _printf_p(_In_z_ _Printf_format_string_ char const *const _Format,...)
Definition: stdio.h:1020
_Check_return_opt_ _Success_(return!=0) _ACRTIMP size_t __cdecl fread_s(_Out_writes_bytes_to_(_BufferSize
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL vscanf_s(_In_z_ _Printf_format_string_ char const *const _Format, va_list _ArgList)
Definition: stdio.h:1161
_Check_return_opt_ _ACRTIMP int __cdecl fflush(_Inout_opt_ FILE *_Stream)
_In_ _Value
Definition: corecrt_wstdlib.h:65
#define _Scanf_format_string_
Definition: sal.h:559
_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, va_list _ArgList)
Definition: stdio.h:1145
_Check_return_opt_ _ACRTIMP int __cdecl _rmtmp(void)
_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, va_list _ArgList)
Definition: stdio.h:660
#define _Out_writes_(size)
Definition: sal.h:345
#define _Post_readable_size_(size)
Definition: sal.h:646
_Check_return_opt_ _In_z_ _Scanf_format_string_params_(0) char const *const _Format
_Check_return_ _ACRTIMP int __cdecl ferror(_In_ FILE *_Stream)
_Inout_ FILE _In_z_ _In_opt_ _locale_t _Locale
Definition: stdio.h:626
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL fprintf(_Inout_ FILE *const _Stream, _In_z_ _Printf_format_string_ char const *const _Format,...)
Definition: stdio.h:826
_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,...)
Definition: stdio.h:1289
#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst)
Definition: corecrt.h:709
#define _Deref_post_valid_
Definition: sal.h:1192
#define _CRT_INTERNAL_SCANF_SECURECRT
Definition: corecrt_stdio_config.h:116
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2_ARGLIST(_ReturnType, _FuncName, _VFuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
Definition: corecrt.h:701
#define stdin
Definition: corecrt_wstdio.h:33
_Diff _Count
Definition: algorithm:1941
#define _Inout_
Definition: sal.h:375
_Check_return_ _CRT_INSECURE_DEPRECATE(fopen_s) _ACRTIMP FILE *__cdecl fopen(_In_z_ char const *_FileName
_ACRTIMP
Definition: stdio.h:441
Definition: type_traits:960
_ACRTIMP void __cdecl perror(_In_opt_z_ char const *_ErrorMessage)
_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,...)
Definition: stdio.h:850
#define _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION
Definition: corecrt_stdio_config.h:109
_Inout_ FILE _In_z_ _Printf_format_string_params_(2) char const *_Format
_Out_writes_opt_z_(_BufferCount) char *_Buffer
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL printf_s(_In_z_ _Printf_format_string_ char const *const _Format,...)
Definition: stdio.h:983
#define _Pre_z_
Definition: sal.h:665
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL scanf_s(_In_z_ _Scanf_s_format_string_ char const *const _Format,...)
Definition: stdio.h:1309
_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, va_list _ArgList)
Definition: stdio.h:780
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL vprintf_s(_In_z_ _Printf_format_string_ char const *const _Format, va_list _ArgList)
Definition: stdio.h:765
_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,...)
Definition: stdio.h:928
_Out_ fpos_t * _Position
Definition: stdio.h:188
char * va_list
Definition: vadefs.h:39
_ACRTIMP int *__cdecl __p__commode(void)
_Check_return_opt_ _ACRTIMP size_t __cdecl fwrite(_In_reads_bytes_(_ElementSize *_ElementCount) void const *_Buffer, _In_ size_t _ElementSize, _In_ size_t _ElementCount, _Inout_ FILE *_Stream)
_Check_return_opt_ _ACRTIMP size_t __cdecl fread(_Out_writes_bytes_(_ElementSize *_ElementCount) void *_Buffer, _In_ size_t _ElementSize, _In_ size_t _ElementCount, _Inout_ FILE *_Stream)
__crt_va_start(_ArgList, _Locale)
#define _commode
Definition: stdio.h:590
#define _Pre_notnull_
Definition: sal.h:677
_Check_return_opt_ _ACRTIMP int __cdecl _ungetc_nolock(_In_ int _Character, _Inout_ FILE *_Stream)
tmpnam
Definition: stdio.h:441
_Check_return_ _ACRTIMP int __cdecl _getmaxstdio(void)
_Check_return_opt_ _ACRTIMP int __cdecl _fcloseall(void)
_Check_return_wat_ _ACRTIMP errno_t __cdecl fopen_s(_Outptr_result_maybenull_ FILE **_Stream, _In_z_ char const *_FileName, _In_z_ char const *_Mode)
_Check_return_opt_ _ACRTIMP int __cdecl _flushall(void)
#define NULL
Definition: corecrt.h:158
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vfprintf_p(_Inout_ FILE *const _Stream, _In_z_ _Printf_format_string_ char const *const _Format, va_list _ArgList)
Definition: stdio.h:708
#define _Post_maybez_
Definition: sal.h:1369