banan-os/libc/stdio/printf.c

9 lines
133 B
C
Raw Normal View History

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