smol-gilbraltar/kernel/printf.c

12 lines
195 B
C
Raw Permalink Normal View History

2024-12-20 22:45:12 +00:00
#include <stdarg.h>
2024-12-23 00:46:17 +00:00
#include <stdio.h>
2024-12-20 22:45:12 +00:00
2024-12-23 00:46:17 +00:00
int printf(const char *restrict fmt, ...) {
int ret;
va_list ap;
va_start(ap, fmt);
ret = vfprintf(stdout, fmt, ap);
va_end(ap);
return ret;
2024-12-20 22:45:12 +00:00
}