diff options
author | Anton Kling <anton@kling.gg> | 2023-10-22 23:24:02 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-22 23:24:02 +0200 |
commit | 9ed05a6507a66cd7e9b01c911a90a10ea51c8b95 (patch) | |
tree | cdfb4a82b775ec90f956c7d5dee1bd232ccb27c1 /userland/libc | |
parent | 9efad5f8d3ebbecdf8221d871f43bcbd15f1ac7d (diff) |
libc: Implement fscanf function
Diffstat (limited to 'userland/libc')
-rw-r--r-- | userland/libc/stdio/fscanf.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 <assert.h> 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; } |