2012-07-21 20:05:18 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: GNU GPL, see COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS crt library
|
|
|
|
* FILE: lib/sdk/crt/printf/_vscprintf.c
|
|
|
|
* PURPOSE: Implementation of _vscprintf
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
2013-09-14 10:28:30 +00:00
|
|
|
int __cdecl streamout(FILE *stream, const char *format, va_list argptr);
|
2012-07-21 20:05:18 +00:00
|
|
|
|
2013-09-14 10:28:30 +00:00
|
|
|
int
|
2018-03-23 21:02:31 +00:00
|
|
|
__cdecl
|
2013-09-14 10:28:30 +00:00
|
|
|
_vscprintf(
|
2018-03-23 21:02:31 +00:00
|
|
|
const char *format,
|
|
|
|
va_list argptr)
|
2012-07-21 20:05:18 +00:00
|
|
|
{
|
2018-03-08 20:38:40 +00:00
|
|
|
FILE nulfile;
|
|
|
|
nulfile._tmpfname = nulfile._ptr = nulfile._base = NULL;
|
|
|
|
nulfile._bufsiz = nulfile._charbuf = nulfile._cnt = 0;
|
|
|
|
nulfile._flag = _IOSTRG | _IOWRT;
|
|
|
|
return streamout(&nulfile, format, argptr);
|
2012-07-21 20:05:18 +00:00
|
|
|
}
|