zig/lib/libc/mingw/secapi/_cprintf_s_l.c
Andrew Kelley 49d1a4c562 move lib dirs to lib subdir
also start prefering NtDll API. so far:
 * NtQueryInformationFile
 * NtClose

adds a performance workaround for windows unicode conversion. but that
should probably be removed before merging
2019-07-15 17:54:50 -04:00

22 lines
419 B
C

#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_l))(const char *, _locale_t, ...) =
_cprintf_s_l;
int __cdecl
_cprintf_s_l (const char *s, _locale_t loc, ...)
{
va_list argp;
int r;
va_start (argp, loc);
r = _vcprintf_s_l (s, loc, argp);
va_end (argp);
return r;
}