conio_s.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _INC_CONIO_S
  7. #define _INC_CONIO_S
  8. #include <conio.h>
  9. #if defined(__LIBMSVCRT__)
  10. /* When building mingw-w64, this should be blank. */
  11. #define _SECIMP
  12. #else
  13. #ifndef _SECIMP
  14. #define _SECIMP __declspec(dllimport)
  15. #endif /* _SECIMP */
  16. #endif /* defined(__LIBMSVCRT__) */
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. _SECIMP errno_t __cdecl _cgets_s (char *_Buffer,size_t _Size,size_t *_SizeRead);
  21. __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _cgets_s, char, _Buffer, size_t*, _SizeRead)
  22. _SECIMP int __cdecl _cprintf_s (const char *_Format,...);
  23. _CRTIMP int __cdecl _cscanf_s(const char *_Format,...);
  24. _CRTIMP int __cdecl _cscanf_s_l(const char *_Format,_locale_t _Locale,...);
  25. _SECIMP int __cdecl _vcprintf_s (const char *_Format,va_list _ArgList);
  26. _SECIMP int __cdecl _cprintf_s_l (const char *_Format,_locale_t _Locale,...);
  27. _SECIMP int __cdecl _vcprintf_s_l (const char *_Format,_locale_t _Locale,va_list _ArgList);
  28. #ifndef _WCONIO_S_DEFINED
  29. #define _WCONIO_S_DEFINED
  30. _SECIMP errno_t __cdecl _cgetws_s (wchar_t *_Buffer,size_t _SizeInWords,size_t *_SizeRead);
  31. __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _cgetws_s, wchar_t, _Buffer, size_t*, _SizeRead)
  32. _SECIMP int __cdecl _cwprintf_s (const wchar_t *_Format,...);
  33. _CRTIMP int __cdecl _cwscanf_s(const wchar_t *_Format,...);
  34. _CRTIMP int __cdecl _cwscanf_s_l(const wchar_t *_Format,_locale_t _Locale,...);
  35. _SECIMP int __cdecl _vcwprintf_s (const wchar_t *_Format,va_list _ArgList);
  36. _SECIMP int __cdecl _cwprintf_s_l (const wchar_t *_Format,_locale_t _Locale,...);
  37. _SECIMP int __cdecl _vcwprintf_s_l (const wchar_t *_Format,_locale_t _Locale,va_list _ArgList);
  38. #endif
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif