Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505//// conio.h//// Copyright (c) Microsoft Corporation. All rights reserved.//// This file declares the direct console I/O functions.//#pragma once#ifndef _INC_CONIO // include guard for 3rd party interop#define _INC_CONIO
#include <corecrt.h>#include <corecrt_wconio.h>
#pragma warning(push)#pragma warning(disable: _UCRT_DISABLED_WARNINGS)_UCRT_DISABLE_CLANG_WARNINGS
_CRT_BEGIN_C_HEADER
_Check_return_wat_ _Success_(_BufferCount > 0) _DCRTIMP errno_t __cdecl _cgets_s( _Out_writes_z_(_BufferCount) char* _Buffer, _In_ size_t _BufferCount, _Out_ size_t* _SizeRead );
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( _Success_(return == 0) errno_t, _cgets_s, _Out_writes_z_(*_Buffer) char, _Buffer, _Out_ size_t*, _SizeRead )
_Check_return_opt_ _DCRTIMP int __cdecl _cputs( _In_z_ char const* _Buffer );
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // // Narrow Character Formatted Output Functions (Console) // //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ _Check_return_opt_ _DCRTIMP int __cdecl __conio_common_vcprintf( _In_ unsigned __int64 _Options, _In_z_ _Printf_format_string_params_(2) char const* _Format, _In_opt_ _locale_t _Locale, va_list _ArgList );
_Check_return_opt_ _DCRTIMP int __cdecl __conio_common_vcprintf_s( _In_ unsigned __int64 _Options, _In_z_ _Printf_format_string_params_(2) char const* _Format, _In_opt_ _locale_t _Locale, va_list _ArgList );
_Check_return_opt_ _DCRTIMP int __cdecl __conio_common_vcprintf_p( _In_ unsigned __int64 _Options, _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 _vcprintf_l( _In_z_ _Printf_format_string_params_(2) char const* const _Format, _In_opt_ _locale_t const _Locale, va_list _ArgList )#if defined _NO_CRT_STDIO_INLINE;#else { return __conio_common_vcprintf( _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Format, _Locale, _ArgList); }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vcprintf( _In_z_ _Printf_format_string_ char const* const _Format, va_list _ArgList )#if defined _NO_CRT_STDIO_INLINE;#else { return _vcprintf_l(_Format, NULL, _ArgList); }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vcprintf_s_l( _In_z_ _Printf_format_string_params_(2) char const* const _Format, _In_opt_ _locale_t const _Locale, va_list _ArgList )#if defined _NO_CRT_STDIO_INLINE;#else { return __conio_common_vcprintf_s( _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Format, _Locale, _ArgList); }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vcprintf_s( _In_z_ _Printf_format_string_ char const* const _Format, va_list _ArgList )#if defined _NO_CRT_STDIO_INLINE;#else { return _vcprintf_s_l(_Format, NULL, _ArgList); }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vcprintf_p_l( _In_z_ _Printf_format_string_params_(2) char const* const _Format, _In_opt_ _locale_t const _Locale, va_list _ArgList )#if defined _NO_CRT_STDIO_INLINE;#else { return __conio_common_vcprintf_p( _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Format, _Locale, _ArgList); }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vcprintf_p( _In_z_ char const* const _Format, va_list _ArgList )#if defined _NO_CRT_STDIO_INLINE;#else { return _vcprintf_p_l(_Format, NULL, _ArgList); }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _cprintf_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 _Result; va_list _ArgList; __crt_va_start(_ArgList, _Locale); _Result = _vcprintf_l(_Format, _Locale, _ArgList); __crt_va_end(_ArgList); return _Result; }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _cprintf( _In_z_ _Printf_format_string_ char const* const _Format, ...)#if defined _NO_CRT_STDIO_INLINE;#else { int _Result; va_list _ArgList; __crt_va_start(_ArgList, _Format); _Result = _vcprintf_l(_Format, NULL, _ArgList); __crt_va_end(_ArgList); return _Result; }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _cprintf_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 _Result; va_list _ArgList; __crt_va_start(_ArgList, _Locale); _Result = _vcprintf_s_l(_Format, _Locale, _ArgList); __crt_va_end(_ArgList); return _Result; }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _cprintf_s( _In_z_ _Printf_format_string_ char const* const _Format, ...)#if defined _NO_CRT_STDIO_INLINE;#else { int _Result; va_list _ArgList; __crt_va_start(_ArgList, _Format); _Result = _vcprintf_s_l(_Format, NULL, _ArgList); __crt_va_end(_ArgList); return _Result; }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _cprintf_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 _Result; va_list _ArgList; __crt_va_start(_ArgList, _Locale); _Result = _vcprintf_p_l(_Format, _Locale, _ArgList); __crt_va_end(_ArgList); return _Result; }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _cprintf_p( _In_z_ _Printf_format_string_ char const* const _Format, ...)#if defined _NO_CRT_STDIO_INLINE;#else { int _Result; va_list _ArgList; __crt_va_start(_ArgList, _Format); _Result = _vcprintf_p_l(_Format, NULL, _ArgList); __crt_va_end(_ArgList); return _Result; }#endif
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // // Narrow Character Formatted Input Functions (Console) // //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ _Check_return_opt_ _DCRTIMP int __cdecl __conio_common_vcscanf( _In_ unsigned __int64 _Options, _In_z_ _Scanf_format_string_params_(2) char const* _Format, _In_opt_ _locale_t _Locale, va_list _ArgList );
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vcscanf_s_l) _CRT_STDIO_INLINE int __CRTDECL _vcscanf_l( _In_z_ _Scanf_format_string_params_(2) char const* const _Format, _In_opt_ _locale_t const _Locale, va_list _ArgList )#if defined _NO_CRT_STDIO_INLINE;#else { return __conio_common_vcscanf( _CRT_INTERNAL_LOCAL_SCANF_OPTIONS, _Format, _Locale, _ArgList); }#endif
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vcscanf_s) _CRT_STDIO_INLINE int __CRTDECL _vcscanf( _In_z_ _Scanf_format_string_params_(1) char const* const _Format, va_list _ArgList )#if defined _NO_CRT_STDIO_INLINE;#else { return _vcscanf_l(_Format, NULL, _ArgList); }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vcscanf_s_l( _In_z_ _Scanf_format_string_params_(2) char const* const _Format, _In_opt_ _locale_t const _Locale, va_list _ArgList )#if defined _NO_CRT_STDIO_INLINE;#else { return __conio_common_vcscanf( _CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT, _Format, _Locale, _ArgList); }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vcscanf_s( _In_z_ _Scanf_format_string_params_(1) char const* const _Format, va_list _ArgList )#if defined _NO_CRT_STDIO_INLINE;#else { return _vcscanf_s_l(_Format, NULL, _ArgList); }#endif
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_cscanf_s_l) _CRT_STDIO_INLINE int __CRTDECL _cscanf_l( _In_z_ _Scanf_format_string_params_(0) char const* const _Format, _In_opt_ _locale_t const _Locale, ...)#if defined _NO_CRT_STDIO_INLINE;#else { int _Result; va_list _ArgList; __crt_va_start(_ArgList, _Locale);
_Result = _vcscanf_l(_Format, _Locale, _ArgList);
__crt_va_end(_ArgList); return _Result; }#endif
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(_cscanf_s) _CRT_STDIO_INLINE int __CRTDECL _cscanf( _In_z_ _Scanf_format_string_ char const* const _Format, ...)#if defined _NO_CRT_STDIO_INLINE;#else { int _Result; va_list _ArgList; __crt_va_start(_ArgList, _Format);
_Result = _vcscanf_l(_Format, NULL, _ArgList);
__crt_va_end(_ArgList); return _Result; }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _cscanf_s_l( _In_z_ _Scanf_format_string_params_(0) char const* const _Format, _In_opt_ _locale_t const _Locale, ...)#if defined _NO_CRT_STDIO_INLINE;#else { int _Result; va_list _ArgList; __crt_va_start(_ArgList, _Locale); _Result = _vcscanf_s_l(_Format, _Locale, _ArgList); __crt_va_end(_ArgList); return _Result; }#endif
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _cscanf_s( _In_z_ _Scanf_format_string_ char const* const _Format, ...)#if defined _NO_CRT_STDIO_INLINE;#else { int _Result; va_list _ArgList; __crt_va_start(_ArgList, _Format); _Result = _vcscanf_s_l(_Format, NULL, _ArgList); __crt_va_end(_ArgList); return _Result; }#endif
_DCRTIMP int __cdecl _kbhit(void);
_Check_return_ _DCRTIMP int __cdecl _getch(void); _Check_return_ _DCRTIMP int __cdecl _getche(void); _Check_return_opt_ _DCRTIMP int __cdecl _putch (_In_ int _Ch); _Check_return_opt_ _DCRTIMP int __cdecl _ungetch(_In_ int _Ch);
_Check_return_ _DCRTIMP int __cdecl _getch_nolock (void); _Check_return_ _DCRTIMP int __cdecl _getche_nolock (void); _Check_return_opt_ _DCRTIMP int __cdecl _putch_nolock (_In_ int _Ch); _Check_return_opt_ _DCRTIMP int __cdecl _ungetch_nolock(_In_ int _Ch);
#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES
// Suppress double-deprecation warnings: #pragma warning(push) #pragma warning(disable: 4141)
_Success_(return != 0) _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_cgets) _CRT_INSECURE_DEPRECATE(_cgets_s) _DCRTIMP char* __cdecl cgets( _At_(&_Buffer[0], _In_reads_(1)) _At_(&_Buffer[1], _Out_writes_(1)) _At_(&_Buffer[2], _Post_z_ _Out_writes_to_(_Buffer[0], _Buffer[1])) char* _Buffer );
#pragma warning(pop)
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_cputs) _DCRTIMP int __cdecl cputs( _In_z_ char const* _String );
_Check_return_ _CRT_NONSTDC_DEPRECATE(_getch) _DCRTIMP int __cdecl getch(void);
_Check_return_ _CRT_NONSTDC_DEPRECATE(_getche) _DCRTIMP int __cdecl getche(void);
_Check_return_ _CRT_NONSTDC_DEPRECATE(_kbhit) _DCRTIMP int __cdecl kbhit(void);
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_putch) _DCRTIMP int __cdecl putch( _In_ int _Ch );
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_ungetch) _DCRTIMP int __cdecl ungetch( _In_ int _Ch );
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_cprintf) _CRT_STDIO_INLINE int __CRTDECL cprintf( _In_z_ _Printf_format_string_ char const* const _Format, ...)#if defined _NO_CRT_STDIO_INLINE;#else { int _Result; va_list _ArgList; __crt_va_start(_ArgList, _Format); _Result = _vcprintf_l(_Format, NULL, _ArgList); __crt_va_end(_ArgList); return _Result; }#endif
_Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_cscanf) _CRT_STDIO_INLINE int __CRTDECL cscanf( _In_z_ _Scanf_format_string_ char const* const _Format, ...)#if defined _NO_CRT_STDIO_INLINE;#else { int _Result; va_list _ArgList; __crt_va_start(_ArgList, _Format);
_Result = _vcscanf_l(_Format, NULL, _ArgList);
__crt_va_end(_ArgList); return _Result; }#endif
#endif // _CRT_INTERNAL_NONSTDC_NAMES
_CRT_END_C_HEADER
_UCRT_RESTORE_CLANG_WARNINGS#pragma warning(pop) // _UCRT_DISABLED_WARNINGS#endif // _INC_CONIO