diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-02-28 15:33:22 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-02-28 15:33:22 -0500 |
commit | c73db4ce616ba2fefd0b2dcd034600fa1a7e7bfa (patch) | |
tree | 31d6192a2acff238755b0c6bfc3292a35cff996b /src/stdio/vfscanf.c | |
parent | 3cf39d63902bdbdff2450e542a80e103ceb34571 (diff) |
implement in terms of __scanf()
Diffstat (limited to 'src/stdio/vfscanf.c')
-rw-r--r-- | src/stdio/vfscanf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stdio/vfscanf.c b/src/stdio/vfscanf.c index 44ce6ea2..6c0f97ee 100644 --- a/src/stdio/vfscanf.c +++ b/src/stdio/vfscanf.c @@ -1,7 +1,14 @@ #include <stdio.h> +#include "nonstd/io.h" int vfscanf(FILE * restrict stream, const char * restrict format, va_list arg) { + int ret = 0; + struct io_options opt = {0}; + opt.fnname = __func__; + opt.stream = stream; + ret = __scanf(&opt, format, arg); + return ret; } /* |