[SDK] Do not use a NUL file while calculating format string length
[reactos.git] / sdk / lib / crt / printf / wprintf.c
1 /*
2 * COPYRIGHT: GNU GPL, see COPYING in the top level directory
3 * PROJECT: ReactOS crt library
4 * FILE: lib/sdk/crt/printf/wprintf.c
5 * PURPOSE: Implementation of wprintf
6 * PROGRAMMER: Timo Kreuzer
7 * Samuel SerapiĆ³n
8 */
9
10 #include <stdio.h>
11 #include <stdarg.h>
12
13 int
14 __cdecl
15 wprintf(const wchar_t *format, ...)
16 {
17 va_list argptr;
18 int result;
19
20 va_start(argptr, format);
21 result = vwprintf(format, argptr);
22 va_end(argptr);
23 return result;
24 }