]> git.sur5r.net Git - cc65/blob - libsrc/common/printf.c
Fixed a bug
[cc65] / libsrc / common / printf.c
1 /*
2  * printf.c
3  * 
4  * Ullrich von Bassewitz, 11.08.1998
5  */
6
7
8
9 #include <stdarg.h>
10 #include <stdio.h>
11
12
13
14 int printf (char* format, ...)
15 {
16     va_list ap;
17     va_start (ap, format);
18
19     /* Do formatting and output. Since we know, that va_end is empty, we don't
20      * call it here, saving an extra variable and some code.
21      */
22     return vfprintf (stdout, (char*) va_fix (ap, 1), ap);
23 }
24
25
26