reactos/sdk/lib/crt/printf/vfprintf.c

27 lines
563 B
C
Raw Normal View History

/*
* COPYRIGHT: GNU GPL, see COPYING in the top level directory
* PROJECT: ReactOS crt library
* FILE: lib/sdk/crt/printf/vfprintf.c
* PURPOSE: Implementation of vfprintf
* PROGRAMMER: Timo Kreuzer
*/
#include <stdio.h>
#include <stdarg.h>
int __cdecl streamout(FILE *stream, const char *format, va_list argptr);
int
__cdecl
vfprintf(FILE *file, const char *format, va_list argptr)
{
int result;
_lock_file(file);
result = streamout(file, format, argptr);
_unlock_file(file);
return result;
}