banan-os/libc/stdio/printf.c

9 lines
133 B
C

#include <stdio.h>
int printf(const char* restrict fmt, ...)
{
int len = 0;
while (fmt[len])
putchar(fmt[len++]);
return len;
}