a9f83f1046c4fca5dea9ff28b939dcc1976cf957
[reactos.git] / lib / sdk / crt / printf / printf.c
1 /*
2 * COPYRIGHT: GNU GPL, see COPYING in the top level directory
3 * PROJECT: ReactOS crt library
4 * FILE: lib/sdk/crt/printf/printf.c
5 * PURPOSE: Implementation of printf
6 * PROGRAMMER: Timo Kreuzer
7 */
8
9 #include <stdio.h>
10 #include <stdarg.h>
11 #include <tchar.h>
12
13 int _cdecl streamout(FILE *stream, const char *format, va_list argptr);
14
15 int
16 _cdecl
17 printf(const char *format, ...)
18 {
19 va_list argptr;
20 int result;
21
22 va_start(argptr, format);
23 result = streamout(stdout, format, argptr);
24 va_end(argptr);
25 return result;
26 }
27