From 9ed05a6507a66cd7e9b01c911a90a10ea51c8b95 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sun, 22 Oct 2023 23:24:02 +0200 Subject: libc: Implement fscanf function --- userland/libc/stdio/fscanf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'userland/libc/stdio') diff --git a/userland/libc/stdio/fscanf.c b/userland/libc/stdio/fscanf.c index 785ce4b..4af79f9 100644 --- a/userland/libc/stdio/fscanf.c +++ b/userland/libc/stdio/fscanf.c @@ -2,6 +2,9 @@ #include int fscanf(FILE *stream, const char *format, ...) { - // FIXME - assert(0); + va_list ap; + va_start(ap, format); + int rc = vfscanf(stream, format, ap); + va_end(ap); + return rc; } -- cgit v1.2.3