From 41ee6b43c89ce67808a684ba67f69e964b0636fa Mon Sep 17 00:00:00 2001 From: aqua Date: Sat, 18 Feb 2023 10:12:24 +0200 Subject: Move C stdlib to lib/libk --- lib/libk/stdio/printf.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/libk/stdio/printf.c (limited to 'lib/libk/stdio/printf.c') diff --git a/lib/libk/stdio/printf.c b/lib/libk/stdio/printf.c new file mode 100644 index 0000000..4efc1ac --- /dev/null +++ b/lib/libk/stdio/printf.c @@ -0,0 +1,11 @@ +#include + +int +printf(const char *restrict format, ...) +{ + va_list ap; + va_start(ap, format); + int c = vfprintf(stdout, format, ap); + va_end(ap); + return c; +} -- cgit v1.2.1