Root/
Source at commit 1308 created 12 years 7 months ago. By meklort, Add a few placeholders for file io | |
---|---|
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 |