diff options
Diffstat (limited to 'src/stdio/scanf_s.c')
-rw-r--r-- | src/stdio/scanf_s.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/stdio/scanf_s.c b/src/stdio/scanf_s.c new file mode 100644 index 00000000..f67335f7 --- /dev/null +++ b/src/stdio/scanf_s.c @@ -0,0 +1,32 @@ +#include "stdio.h" +#include "stdarg.h" + +/** read formatted input **/ +int scanf_s(const char * restrict format, ...) +{ + __C_EXT(1, 201112L); + int retval; + va_list ap; + va_start(ap, format); + retval = vfscanf_s(stdin, format, ap); + va_end(ap); + return retval; +} + +/*** +The fn(scanf) function reads formatted input from macro(stdin). + +FIXME: scanf format goes here +***/ + +/* UNSPECIFIED: ??? */ +/* UNDEFINED: ??? */ +/* IMPLEMENTATION: ??? */ +/* LOCALE: ??? */ + +/* RETURN(EOF): an input failure occurred */ +/* RETURN: the number of input items assigned */ + +/* +CEXT1(201112) +*/ |