[CRT] Fix implementation of _vsc(w)printf() for native NT.
[reactos.git] / sdk / lib / crt / printf / _vscwprintf.c
1 /*
2 * COPYRIGHT: GNU GPL, see COPYING in the top level directory
3 * PROJECT: ReactOS crt library
4 * FILE: lib/sdk/crt/printf/_vscwprintf.c
5 * PURPOSE: Implementation of _vscwprintf
6 */
7
8 #include <stdio.h>
9 #include <stdarg.h>
10
11 int __cdecl wstreamout(FILE *stream, const wchar_t *format, va_list argptr);
12
13 int
14 __cdecl
15 _vscwprintf(
16 const wchar_t *format,
17 va_list argptr)
18 {
19 FILE nulfile;
20 nulfile._tmpfname = nulfile._ptr = nulfile._base = NULL;
21 nulfile._bufsiz = nulfile._charbuf = nulfile._cnt = 0;
22 nulfile._flag = _IOSTRG | _IOWRT;
23 return wstreamout(&nulfile, format, argptr);
24 }