diff options
Diffstat (limited to 'src/stdio')
| -rw-r--r-- | src/stdio/vfscanf.c | 7 | ||||
| -rw-r--r-- | src/stdio/vsscanf.c | 7 |
2 files changed, 14 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; } /* diff --git a/src/stdio/vsscanf.c b/src/stdio/vsscanf.c index 534f30ea..d5322078 100644 --- a/src/stdio/vsscanf.c +++ b/src/stdio/vsscanf.c @@ -1,8 +1,15 @@ #include <stdio.h> #include "stdarg.h" +#include "nonstd/io.h" int vsscanf(const char * restrict s, const char * restrict format, va_list arg) { + int ret = 0; + struct io_options opt = {0}; + opt.fnname = __func__; + opt.string = (char*)s; + ret = __scanf(&opt, format, arg); + return ret; } /* |
