xref: /reactos/sdk/lib/crt/printf/fprintf.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/fprintf.c
5  * PURPOSE:         Implementation of fprintf
6  * PROGRAMMER:      Timo Kreuzer
7  */
8 
9 #include <stdio.h>
10 #include <stdarg.h>
11 
12 int
13 __cdecl
fprintf(FILE * file,const char * format,...)14 fprintf(FILE *file, const char *format, ...)
15 {
16     va_list argptr;
17     int result;
18 
19     va_start(argptr, format);
20     result = vfprintf(file, format, argptr);
21     va_end(argptr);
22     return result;
23 }
24