mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +00:00
25 lines
520 B
C
25 lines
520 B
C
/*
|
|
* COPYRIGHT: GNU GPL, see COPYING in the top level directory
|
|
* PROJECT: ReactOS crt library
|
|
* FILE: lib/sdk/crt/printf/printf.c
|
|
* PURPOSE: Implementation of printf
|
|
* PROGRAMMER: Timo Kreuzer
|
|
* Samuel Serapión
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
|
|
int
|
|
__cdecl
|
|
printf(const char *format, ...)
|
|
{
|
|
va_list argptr;
|
|
int result;
|
|
|
|
va_start(argptr, format);
|
|
result = vfprintf(stdout, format, argptr);
|
|
va_end(argptr);
|
|
|
|
return result;
|
|
}
|