500 |
|
_Check_return_opt_ _CRTIMP int __cdecl _vwprintf_s_l(_In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, va_list _ArgList); |
501 |
|
|
502 |
|
_Check_return_opt_ _CRTIMP int __cdecl _fwprintf_l(_Inout_ FILE * _File, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
503 |
|
_Check_return_opt_ _CRTIMP int __cdecl _fwprintf_p_l(_Inout_ FILE * _File, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
504 |
|
_Check_return_opt_ _CRTIMP int __cdecl _fwprintf_s_l(_Inout_ FILE * _File, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
505 |
|
_Check_return_opt_ _CRTIMP int __cdecl _vfwprintf_l(_Inout_ FILE * _File, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, va_list _ArgList); |
506 |
|
_Check_return_opt_ _CRTIMP int __cdecl _vfwprintf_p_l(_Inout_ FILE * _File, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, va_list _ArgList); |
507 |
|
_Check_return_opt_ _CRTIMP int __cdecl _vfwprintf_s_l(_Inout_ FILE * _File, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, va_list _ArgList); |
508 |
|
|
509 |
|
_Check_return_opt_ _CRTIMP int __cdecl _swprintf_c_l(_Out_z_cap_(_MaxCount) wchar_t * _DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
510 |
|
_Check_return_opt_ _CRTIMP int __cdecl _swprintf_p_l(_Out_z_cap_(_MaxCount) wchar_t * _DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
511 |
|
_Check_return_opt_ _CRTIMP_ALTERNATIVE int __cdecl _swprintf_s_l(_Out_z_cap_(_DstSize) wchar_t * _DstBuf, _In_ size_t _DstSize, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
512 |
|
_Check_return_opt_ _CRTIMP int __cdecl _vswprintf_c_l(_Out_z_cap_(_MaxCount) wchar_t * _DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, va_list _ArgList); |
513 |
|
_Check_return_opt_ _CRTIMP int __cdecl _vswprintf_p_l(_Out_z_cap_(_MaxCount) wchar_t * _DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, va_list _ArgList); |
514 |
|
_Check_return_opt_ _CRTIMP_ALTERNATIVE int __cdecl _vswprintf_s_l(_Out_z_cap_(_DstSize) wchar_t * _DstBuf, _In_ size_t _DstSize, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, va_list _ArgList); |
515 |
|
|
516 |
|
_Check_return_ _CRTIMP int __cdecl _scwprintf_l(_In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
517 |
|
_Check_return_ _CRTIMP int __cdecl _scwprintf_p_l(_In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
518 |
|
_Check_return_ _CRTIMP int __cdecl _vscwprintf_p_l(_In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, va_list _ArgList); |
519 |
|
|
520 |
|
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_snwprintf_s_l) _CRTIMP int __cdecl _snwprintf_l(_Out_cap_(_MaxCount) wchar_t * _DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
521 |
|
_Check_return_opt_ _CRTIMP_ALTERNATIVE int __cdecl _snwprintf_s_l(_Out_z_cap_(_DstSize) wchar_t * _DstBuf, _In_ size_t _DstSize, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
522 |
|
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vsnwprintf_s_l) _CRTIMP int __cdecl _vsnwprintf_l(_Out_cap_(_MaxCount) wchar_t * _DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, va_list _ArgList); |
523 |
|
_Check_return_opt_ _CRTIMP_ALTERNATIVE int __cdecl _vsnwprintf_s_l(_Out_z_cap_(_DstSize) wchar_t * _DstBuf, _In_ size_t _DstSize, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, va_list _ArgList); |
524 |
|
|
525 |
|
|
526 |
|
#ifndef _CRT_NON_CONFORMING_SWPRINTFS |
527 |
|
|
528 |
|
#define _SWPRINTFS_DEPRECATED _CRT_DEPRECATE_TEXT("swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.") |
529 |
|
|
530 |
|
#else |
531 |
|
|
532 |
|
#define _SWPRINTFS_DEPRECATED |
533 |
|
|
534 |
|
#endif /* ifndef _CRT_NON_CONFORMING_SWPRINTFS */ |
535 |
|
|
536 |
|
/* we could end up with a double deprecation, disable warnings 4141 and 4996 */ |
537 |
|
#pragma warning(push) |
538 |
|
#pragma warning(disable:4141 4996 4793) |
539 |
|
__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST_EX(int, __RETURN_POLICY_SAME, _SWPRINTFS_DEPRECATED _CRTIMP, _swprintf, _swprintf_s, _vswprintf, vswprintf_s, _Pre_notnull_ _Post_z_, wchar_t, _Dest, _In_z_ _Printf_format_string_ const wchar_t *, _Format) |
540 |
|
__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX(int, __RETURN_POLICY_SAME, _SWPRINTFS_DEPRECATED _CRTIMP, __swprintf_l, __vswprintf_l, _vswprintf_s_l, _Pre_notnull_ _Post_z_ wchar_t, , wchar_t, _Dest, _In_z_ _Printf_format_string_ const wchar_t *, _Format, _locale_t, _Plocinfo) |
541 |
|
#pragma warning(pop) |
542 |
|
|
543 |
|
#if !defined(RC_INVOKED) && !defined(__midl) |
544 |
|
#include <swprintf.inl> |
545 |
|
#endif |
546 |
|
|
547 |
|
#ifdef _CRT_NON_CONFORMING_SWPRINTFS |
548 |
|
#ifndef __cplusplus |
549 |
|
#define swprintf _swprintf |
550 |
|
#define vswprintf _vswprintf |
551 |
|
#define _swprintf_l __swprintf_l |
552 |
|
#define _vswprintf_l __vswprintf_l |
553 |
|
#endif |
554 |
|
#endif |
555 |
|
|
556 |
|
#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
557 |
|
#pragma push_macro("_wtempnam") |
558 |
|
#undef _wtempnam |
559 |
|
#endif |
560 |
|
|
561 |
|
_Check_return_ _CRTIMP wchar_t * __cdecl _wtempnam(_In_opt_z_ const wchar_t * _Directory, _In_opt_z_ const wchar_t * _FilePrefix); |
562 |
|
|
563 |
|
#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
564 |
|
#pragma pop_macro("_wtempnam") |
565 |
|
#endif |
566 |
|
|
567 |
|
_Check_return_ _CRTIMP int __cdecl _vscwprintf(_In_z_ _Printf_format_string_ const wchar_t * _Format, va_list _ArgList); |
568 |
|
_Check_return_ _CRTIMP int __cdecl _vscwprintf_l(_In_z_ _Printf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, va_list _ArgList); |
569 |
|
_Check_return_ _CRT_INSECURE_DEPRECATE(fwscanf_s) _CRTIMP int __cdecl fwscanf(_Inout_ FILE * _File, _In_z_ _Scanf_format_string_ const wchar_t * _Format, ...); |
570 |
|
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_fwscanf_s_l) _CRTIMP int __cdecl _fwscanf_l(_Inout_ FILE * _File, _In_z_ _Scanf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
571 |
|
#if __STDC_WANT_SECURE_LIB__ |
572 |
|
_Check_return_opt_ _CRTIMP int __cdecl fwscanf_s(_Inout_ FILE * _File, _In_z_ _Scanf_s_format_string_ const wchar_t * _Format, ...); |
573 |
|
#endif |
574 |
|
_Check_return_opt_ _CRTIMP int __cdecl _fwscanf_s_l(_Inout_ FILE * _File, _In_z_ _Scanf_s_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
575 |
|
_Check_return_ _CRT_INSECURE_DEPRECATE(swscanf_s) _CRTIMP int __cdecl swscanf(_In_z_ const wchar_t * _Src, _In_z_ _Scanf_format_string_ const wchar_t * _Format, ...); |
576 |
|
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_swscanf_s_l) _CRTIMP int __cdecl _swscanf_l(_In_z_ const wchar_t * _Src, _In_z_ _Scanf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
577 |
|
#if __STDC_WANT_SECURE_LIB__ |
578 |
|
_Check_return_opt_ _CRTIMP_ALTERNATIVE int __cdecl swscanf_s(_In_z_ const wchar_t *_Src, _In_z_ _Scanf_s_format_string_ const wchar_t * _Format, ...); |
579 |
|
#endif |
580 |
|
_Check_return_opt_ _CRTIMP_ALTERNATIVE int __cdecl _swscanf_s_l(_In_z_ const wchar_t * _Src, _In_z_ _Scanf_s_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
581 |
|
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_snwscanf_s) _CRTIMP int __cdecl _snwscanf(_In_count_(_MaxCount) _Pre_z_ const wchar_t * _Src, _In_ size_t _MaxCount, _In_z_ _Scanf_format_string_ const wchar_t * _Format, ...); |
582 |
|
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_snwscanf_s_l) _CRTIMP int __cdecl _snwscanf_l(_In_count_(_MaxCount) _Pre_z_ const wchar_t * _Src, _In_ size_t _MaxCount, _In_z_ _Scanf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
583 |
|
_Check_return_opt_ _CRTIMP_ALTERNATIVE int __cdecl _snwscanf_s(_In_count_(_MaxCount) _Pre_z_ const wchar_t * _Src, _In_ size_t _MaxCount, _In_z_ _Scanf_s_format_string_ const wchar_t * _Format, ...); |
584 |
|
_Check_return_opt_ _CRTIMP_ALTERNATIVE int __cdecl _snwscanf_s_l(_In_count_(_MaxCount) _Pre_z_ const wchar_t * _Src, _In_ size_t _MaxCount, _In_z_ _Scanf_s_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
585 |
|
_Check_return_ _CRT_INSECURE_DEPRECATE(wscanf_s) _CRTIMP int __cdecl wscanf(_In_z_ _Scanf_format_string_ const wchar_t * _Format, ...); |
586 |
|
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_wscanf_s_l) _CRTIMP int __cdecl _wscanf_l(_In_z_ _Scanf_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
587 |
|
#if __STDC_WANT_SECURE_LIB__ |
588 |
|
_Check_return_opt_ _CRTIMP_ALTERNATIVE int __cdecl wscanf_s(_In_z_ _Scanf_s_format_string_ const wchar_t * _Format, ...); |
589 |
|
#endif |
590 |
|
_Check_return_opt_ _CRTIMP_ALTERNATIVE int __cdecl _wscanf_s_l(_In_z_ _Scanf_s_format_string_ const wchar_t * _Format, _In_opt_ _locale_t _Locale, ...); |
591 |
|
#pragma warning(pop) |
592 |
|
|
593 |
|
_Check_return_ _CRTIMP FILE * __cdecl _wfdopen(_In_ int _FileHandle , _In_z_ const wchar_t * _Mode); |
594 |
|
_Check_return_ _CRT_INSECURE_DEPRECATE(_wfopen_s) _CRTIMP FILE * __cdecl _wfopen(_In_z_ const wchar_t * _Filename, _In_z_ const wchar_t * _Mode); |
595 |
|
_Check_return_wat_ _CRTIMP errno_t __cdecl _wfopen_s(_Deref_out_opt_ FILE ** _File, _In_z_ const wchar_t * _Filename, _In_z_ const wchar_t * _Mode); |
596 |
|
_Check_return_ _CRT_INSECURE_DEPRECATE(_wfreopen_s) _CRTIMP FILE * __cdecl _wfreopen(_In_z_ const wchar_t * _Filename, _In_z_ const wchar_t * _Mode, _Inout_ FILE * _OldFile); |
597 |
|
_Check_return_wat_ _CRTIMP errno_t __cdecl _wfreopen_s(_Deref_out_opt_ FILE ** _File, _In_z_ const wchar_t * _Filename, _In_z_ const wchar_t * _Mode, _Inout_ FILE * _OldFile); |
598 |
|
|
599 |
|
#ifndef _CRT_WPERROR_DEFINED |
600 |
|
#define _CRT_WPERROR_DEFINED |
601 |
|
_CRTIMP void __cdecl _wperror(_In_opt_z_ const wchar_t * _ErrMsg); |
602 |
|
#endif |
603 |
|
_Check_return_ _CRTIMP FILE * __cdecl _wpopen(_In_z_ const wchar_t *_Command, _In_z_ const wchar_t * _Mode); |
604 |
|
_Check_return_ _CRTIMP int __cdecl _wremove(_In_z_ const wchar_t * _Filename); |
605 |
|
_Check_return_wat_ _CRTIMP errno_t __cdecl _wtmpnam_s(_Out_z_cap_(_SizeInWords) wchar_t * _DstBuf, _In_ size_t _SizeInWords); |
606 |
|
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(errno_t, _wtmpnam_s, _Deref_post_z_ wchar_t, _Buffer) |
607 |
|
__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(wchar_t *, __RETURN_POLICY_DST, _CRTIMP, _wtmpnam, _Pre_maybenull_ _Post_z_, wchar_t, _Buffer) |
608 |
|
|
609 |
|
_Check_return_opt_ _CRTIMP wint_t __cdecl _fgetwc_nolock(_Inout_ FILE * _File); |
610 |
|
_Check_return_opt_ _CRTIMP wint_t __cdecl _fputwc_nolock(_In_ wchar_t _Ch, _Inout_ FILE * _File); |
611 |
|
_Check_return_opt_ _CRTIMP wint_t __cdecl _ungetwc_nolock(_In_ wint_t _Ch, _Inout_ FILE * _File); |
612 |
|
|
613 |
|
#undef _CRT_GETPUTWCHAR_NOINLINE |
614 |
|
|
615 |
|
#if !defined(__cplusplus) || defined(_M_CEE_PURE) || defined(_CRT_GETPUTWCHAR_NOINLINE) |
616 |
|
#define getwchar() fgetwc(stdin) |
617 |
|
#define putwchar(_c) fputwc((_c),stdout) |
618 |
|
#else /* __cplusplus */ |
619 |
|
inline wint_t __CRTDECL getwchar() |
620 |
|
{return (fgetwc(stdin)); } /* stdin */ |
621 |
|
inline wint_t __CRTDECL putwchar(wchar_t _C) |
622 |
|
{return (fputwc(_C, stdout)); } /* stdout */ |
623 |
|
#endif /* __cplusplus */ |
624 |
|
|
625 |
|
#define getwc(_stm) fgetwc(_stm) |
626 |
|
#define putwc(_c,_stm) fputwc(_c,_stm) |
627 |
|
#define _putwc_nolock(_c,_stm) _fputwc_nolock(_c,_stm) |
628 |
|
#define _getwc_nolock(_stm) _fgetwc_nolock(_stm) |
629 |
|
|
630 |
|
#if defined(_CRT_DISABLE_PERFCRIT_LOCKS) && !defined(_DLL) |
631 |
|
#define fgetwc(_stm) _getwc_nolock(_stm) |
632 |
|
#define fputwc(_c,_stm) _putwc_nolock(_c,_stm) |
633 |
|
#define ungetwc(_c,_stm) _ungetwc_nolock(_c,_stm) |
634 |
|
#endif |
635 |
|
|
636 |
|
#define _WSTDIO_DEFINED |
637 |
|
#endif /* _WSTDIO_DEFINED */ |
638 |
|
|
639 |
|
#define _STDIO_DEFINED |
640 |
|
#endif /* _STDIO_DEFINED */ |
641 |
|
|
642 |
|
|
643 |
|
/* Macro definitions */ |
644 |
|
|
645 |
|
#if defined(_CRT_DISABLE_PERFCRIT_LOCKS) && !defined(_DLL) |
646 |
|
#define feof(_stream) ((_stream)->_flag & _IOEOF) |
647 |
|
#define ferror(_stream) ((_stream)->_flag & _IOERR) |
648 |
|
#define _fileno(_stream) ((_stream)->_file) |
649 |
|
#define fgetc(_stream) (--(_stream)->_cnt >= 0 \ |
650 |
|
? 0xff & *(_stream)->_ptr++ : _filbuf(_stream)) |
651 |
|
#define putc(_c,_stream) (--(_stream)->_cnt >= 0 \ |
652 |
|
? 0xff & (*(_stream)->_ptr++ = (char)(_c)) : _flsbuf((_c),(_stream))) |
653 |
|
#define getc(_stream) fgetc(_stream) |
654 |
|
#define getchar() getc(stdin) |
655 |
|
#define putchar(_c) putc((_c),stdout) |
656 |
|
#endif |
657 |
|
|
658 |
|
|
659 |
|
#define _fgetc_nolock(_stream) (--(_stream)->_cnt >= 0 ? 0xff & *(_stream)->_ptr++ : _filbuf(_stream)) |
660 |
|
#define _fputc_nolock(_c,_stream) (--(_stream)->_cnt >= 0 ? 0xff & (*(_stream)->_ptr++ = (char)(_c)) : _flsbuf((_c),(_stream))) |
661 |
|
#define _getc_nolock(_stream) _fgetc_nolock(_stream) |
662 |
|
#define _putc_nolock(_c, _stream) _fputc_nolock(_c, _stream) |
663 |
|
#define _getchar_nolock() _getc_nolock(stdin) |
664 |
|
#define _putchar_nolock(_c) _putc_nolock((_c),stdout) |
665 |
|
#define _getwchar_nolock() _getwc_nolock(stdin) |
666 |
|
#define _putwchar_nolock(_c) _putwc_nolock((_c),stdout) |
667 |
|
|
668 |
|
#ifdef _MT |
669 |
|
_CRTIMP void __cdecl _lock_file(_Inout_ FILE * _File); |
670 |
|
_CRTIMP void __cdecl _unlock_file(_Inout_ FILE * _File); |
671 |
|
#else |
672 |
|
#define _lock_file(c) |
673 |
|
#define _unlock_file(c) |
674 |
|
#endif |
675 |
|
|
676 |
|
|
677 |
|
_Check_return_opt_ _CRTIMP int __cdecl _fclose_nolock(_Inout_ FILE * _File); |
678 |
|
_Check_return_opt_ _CRTIMP int __cdecl _fflush_nolock(_Inout_opt_ FILE * _File); |
679 |
|
_Check_return_opt_ _CRTIMP size_t __cdecl _fread_nolock(_Out_bytecap_x_(_ElementSize*_Count) void * _DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE * _File); |
680 |
|
_Check_return_opt_ _CRTIMP size_t __cdecl _fread_nolock_s(_Out_bytecap_x_(_ElementSize*_Count) void * _DstBuf, _In_ size_t _DstSize, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE * _File); |
681 |
|
_Check_return_opt_ _CRTIMP int __cdecl _fseek_nolock(_Inout_ FILE * _File, _In_ long _Offset, _In_ int _Origin); |
682 |
|
_Check_return_ _CRTIMP long __cdecl _ftell_nolock(_Inout_ FILE * _File); |
683 |
|
_Check_return_opt_ _CRTIMP int __cdecl _fseeki64_nolock(_Inout_ FILE * _File, _In_ __int64 _Offset, _In_ int _Origin); |
684 |
|
_Check_return_ _CRTIMP __int64 __cdecl _ftelli64_nolock(_Inout_ FILE * _File); |
685 |
|
_Check_return_opt_ _CRTIMP size_t __cdecl _fwrite_nolock(_In_bytecount_x_(_Size*_Count) const void * _DstBuf, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE * _File); |
686 |
|
_Check_return_opt_ _CRTIMP int __cdecl _ungetc_nolock(_In_ int _Ch, _Inout_ FILE * _File); |
687 |
|
|
688 |
|
#if defined(_CRT_DISABLE_PERFCRIT_LOCKS) && !defined(_DLL) |
689 |
|
#define fclose(_stm) _fclose_nolock(_stm) |
690 |
|
#define fflush(_stm) _fflush_nolock(_stm) |
691 |
|
#define fread(_DstBuf, _ElementSize, _Count, _File) _fread_nolock(_DstBuf, _ElementSize, _Count, _File) |
692 |
|
#define fread_s(_DstBuf, _DstSize, _ElementSize, _Count, _File) _fread_nolock_s(_DstBuf, _DstSize, _ElementSize, _Count, _File) |
693 |
|
#define fseek(_stm,_offset,_origin) _fseek_nolock(_stm,_offset,_origin) |
694 |
|
#define ftell(_stm) _ftell_nolock(_stm) |
695 |
|
#define _fseeki64(_stm,_offset,_origin) _fseeki64_nolock(_stm,_offset,_origin) |
696 |
|
#define _ftelli64(_stm) _ftelli64_nolock(_stm) |
697 |
|
#define fwrite(_buf,_siz,_cnt,_stm) _fwrite_nolock(_buf,_siz,_cnt,_stm) |
698 |
|
#define ungetc(_c,_stm) _ungetc_nolock(_c,_stm) |
699 |
|
#endif |
700 |
|
|
701 |
|
#if !__STDC__ && !defined(_POSIX_) |
702 |
|
|
703 |
|
/* Non-ANSI names for compatibility */ |
704 |
|
|
705 |
|
#define P_tmpdir _P_tmpdir |
706 |
|
#define SYS_OPEN _SYS_OPEN |
707 |
|
|
708 |
|
#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
709 |
|
#pragma push_macro("tempnam") |
710 |
|
#undef tempnam |
711 |
|
#endif |
712 |
|
|
713 |
|
_CRT_NONSTDC_DEPRECATE(_tempnam) _CRTIMP char * __cdecl tempnam(_In_opt_z_ const char * _Directory, _In_opt_z_ const char * _FilePrefix); |
714 |
|
|
715 |
|
#if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
716 |
|
#pragma pop_macro("tempnam") |
717 |
|
#endif |
718 |
|
|
719 |
|
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_fcloseall) _CRTIMP int __cdecl fcloseall(void); |
720 |
|
_Check_return_ _CRT_NONSTDC_DEPRECATE(_fdopen) _CRTIMP FILE * __cdecl fdopen(_In_ int _FileHandle, _In_z_ const char * _Format); |
721 |
|
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_fgetchar) _CRTIMP int __cdecl fgetchar(void); |
722 |
|
_Check_return_ _CRT_NONSTDC_DEPRECATE(_fileno) _CRTIMP int __cdecl fileno(_In_ FILE * _File); |
723 |
|
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_flushall) _CRTIMP int __cdecl flushall(void); |
724 |
|
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_fputchar) _CRTIMP int __cdecl fputchar(_In_ int _Ch); |
725 |
|
_Check_return_ _CRT_NONSTDC_DEPRECATE(_getw) _CRTIMP int __cdecl getw(_Inout_ FILE * _File); |
726 |
|
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_putw) _CRTIMP int __cdecl putw(_In_ int _Ch, _Inout_ FILE * _File); |
727 |
|
_Check_return_ _CRT_NONSTDC_DEPRECATE(_rmtmp) _CRTIMP int __cdecl rmtmp(void); |
728 |
|
|
729 |
|
#endif /* __STDC__ */ |
730 |
|
|
731 |
|
#ifdef __cplusplus |
732 |
|
} |
733 |
|
#endif |
734 |
|
|
735 |
|
#ifdef _MSC_VER |
736 |
|
#pragma pack(pop) |
737 |
|
#endif /* _MSC_VER */ |
738 |
|
|
739 |
|
#endif /* _INC_STDIO */ |
740 |
|
|
|
|
|