diff options
Diffstat (limited to 'src/mlibc/stdio/printf.c')
-rw-r--r-- | src/mlibc/stdio/printf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mlibc/stdio/printf.c b/src/mlibc/stdio/printf.c index 11516cf..23d8e6e 100644 --- a/src/mlibc/stdio/printf.c +++ b/src/mlibc/stdio/printf.c @@ -4,11 +4,13 @@ #include <mlibc/string.h> #include <mlibc/stdlib.h> -void __writes(const char *data) { +void __writes(const char *data) +{ for (size_t i = 0; i < strlen(data); i++) writec(data[i]); } -void printf(const char *fmt, ...) { +void printf(const char *fmt, ...) +{ va_list args; va_start(args, fmt); |