xref: /minix3/lib/libc/stdio/printf.c (revision b706112487045bc1efd01e3d4d53d9a6b04a0bca)
1 /*
2  * printf - write on the standard output stream
3  */
4 /* $Header$ */
5 
6 #include	<stdio.h>
7 #include	<stdarg.h>
8 #include	"loc_incl.h"
9 
10 int
11 printf(const char *format, ...)
12 {
13 	va_list ap;
14 	int retval;
15 
16 	va_start(ap, format);
17 
18 	retval = _doprnt(format, ap, stdout);
19 
20 	va_end(ap);
21 
22 	return retval;
23 }
24