ReactOS 0.4.15-dev-7918-g2a2556c
printf.c
Go to the documentation of this file.
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
13int
15printf(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}
#define __cdecl
Definition: accygwin.h:79
char * va_list
Definition: acmsvcex.h:78
#define va_end(ap)
Definition: acmsvcex.h:90
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define printf
Definition: freeldr.h:93
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
GLuint64EXT * result
Definition: glext.h:11304
#define stdout
Definition: stdio.h:99
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)