diff options
Diffstat (limited to 'src/mlibc/stdio')
-rw-r--r-- | src/mlibc/stdio/printf.c | 6 | ||||
-rw-r--r-- | src/mlibc/stdio/writec.c | 3 |
2 files changed, 6 insertions, 3 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); diff --git a/src/mlibc/stdio/writec.c b/src/mlibc/stdio/writec.c index 60f69e8..94d4fed 100644 --- a/src/mlibc/stdio/writec.c +++ b/src/mlibc/stdio/writec.c @@ -1,5 +1,6 @@ #include <kernel/graphics/vesa.h> -void writec(char c) { +void writec(char c) +{ vesa_draw_char(c); }
\ No newline at end of file |