xref: /reactos/sdk/lib/crt/printf/printf.c (revision c2c66aff)
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  *                  Samuel Serapi�n
8  */
9 
10 #include <stdio.h>
11 #include <stdarg.h>
12 
13 int
14 __cdecl
printf(const char * format,...)15 printf(const char *format, ...)
16 {
17     va_list argptr;
18     int result;
19 
20     va_start(argptr, format);
21     result = vfprintf(stdout, format, argptr);
22     va_end(argptr);
23 
24     return result;
25 }
26