diff options
Diffstat (limited to 'lib/libc/mingw/secapi/_cprintf_s.c')
| -rw-r--r-- | lib/libc/mingw/secapi/_cprintf_s.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libc/mingw/secapi/_cprintf_s.c b/lib/libc/mingw/secapi/_cprintf_s.c new file mode 100644 index 0000000000..36ea582d41 --- /dev/null +++ b/lib/libc/mingw/secapi/_cprintf_s.c @@ -0,0 +1,21 @@ +#define MINGW_HAS_SECURE_API 1 +#include <windows.h> +#include <malloc.h> +#include <errno.h> +#include <msvcrt.h> +#include <sec_api/conio_s.h> + +int __cdecl (*__MINGW_IMP_SYMBOL(_cprintf_s))(const char *,...) = + _cprintf_s; + +int __cdecl +_cprintf_s (const char *s, ...) +{ + va_list argp; + int r; + + va_start (argp, s); + r = _vcprintf_s (s, argp); + va_end (argp); + return r; +} |
