1 /*
2  * printf.c
3  */
4 
5 #include <stdio.h>
6 #include <stdarg.h>
7 
printf(const char * format,...)8 int printf(const char *format, ...)
9 {
10     va_list ap;
11     int rv;
12 
13     va_start(ap, format);
14     rv = vfprintf(stdout, format, ap);
15     va_end(ap);
16     return rv;
17 }
18