1 #include <windows.h>
2 #include <malloc.h>
3 #include <errno.h>
4 #include <msvcrt.h>
5 #include <sec_api/stdio_s.h>
6
7 int __cdecl (*__MINGW_IMP_SYMBOL(sprintf_s))(char *, size_t, const char *,...) = sprintf_s;
8
9 int __cdecl
sprintf_s(char * _DstBuf,size_t _Size,const char * _Format,...)10 sprintf_s (char *_DstBuf, size_t _Size, const char *_Format, ...)
11 {
12 va_list argp;
13 int r;
14
15 va_start (argp, _Format);
16 r = vsprintf_s (_DstBuf, _Size, _Format, argp);
17 va_end (argp);
18 return r;
19 }
20