Root/
Source at commit 1275 created 12 years 11 months ago. By meklort, Remove unused file. Fixup makefiles some more - boot2 compiles again. | |
---|---|
1 | /*␊ |
2 | * printf.c␊ |
3 | */␊ |
4 | ␊ |
5 | #include <stdio.h>␊ |
6 | #include <stdarg.h>␊ |
7 | ␊ |
8 | #define BUFFER_SIZE␉16384␊ |
9 | ␊ |
10 | int printf(const char *format, ...)␊ |
11 | {␊ |
12 | ␉va_list ap;␊ |
13 | ␉int rv;␊ |
14 | ␊ |
15 | ␉va_start(ap, format);␊ |
16 | ␉rv = vfprintf(NULL, format, ap);␊ |
17 | ␉va_end(ap);␊ |
18 | ␉return rv;␊ |
19 | }␊ |
20 |