• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
7 #ifndef _INC_CONIO_S
8 #define _INC_CONIO_S
9 
10 #include <conio.h>
11 
12 #if defined(__LIBMSVCRT__)
13 /* When building mingw-w64, this should be blank.  */
14 #define _SECIMP
15 #else
16 #ifndef _SECIMP
17 #define _SECIMP __declspec(dllimport)
18 #endif /* _SECIMP */
19 #endif /* defined(_CRTBLD) || defined(__LIBMSVCRT__) */
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25   _SECIMP errno_t __cdecl _cgets_s (char *_Buffer,size_t _Size,size_t *_SizeRead);
26   __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _cgets_s, char, _Buffer, size_t*, _SizeRead)
27 
28   _SECIMP int __cdecl _cprintf_s (const char *_Format,...);
29   _CRTIMP int __cdecl _cscanf_s(const char *_Format,...);
30   _CRTIMP int __cdecl _cscanf_s_l(const char *_Format,_locale_t _Locale,...);
31   _SECIMP int __cdecl _vcprintf_s (const char *_Format,va_list _ArgList);
32   _SECIMP int __cdecl _cprintf_s_l (const char *_Format,_locale_t _Locale,...);
33   _SECIMP int __cdecl _vcprintf_s_l (const char *_Format,_locale_t _Locale,va_list _ArgList);
34 
35 #ifndef _WCONIO_S_DEFINED
36 #define _WCONIO_S_DEFINED
37   _SECIMP errno_t __cdecl _cgetws_s (wchar_t *_Buffer,size_t _SizeInWords,size_t *_SizeRead);
38   __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _cgetws_s, wchar_t, _Buffer, size_t*, _SizeRead)
39 
40   _SECIMP int __cdecl _cwprintf_s (const wchar_t *_Format,...);
41   _CRTIMP int __cdecl _cwscanf_s(const wchar_t *_Format,...);
42   _CRTIMP int __cdecl _cwscanf_s_l(const wchar_t *_Format,_locale_t _Locale,...);
43   _SECIMP int __cdecl _vcwprintf_s (const wchar_t *_Format,va_list _ArgList);
44   _SECIMP int __cdecl _cwprintf_s_l (const wchar_t *_Format,_locale_t _Locale,...);
45   _SECIMP int __cdecl _vcwprintf_s_l (const wchar_t *_Format,_locale_t _Locale,va_list _ArgList);
46 #endif
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif
53