diff options
Diffstat (limited to 'newlib/libc/stdio/vscanf.c')
-rw-r--r-- | newlib/libc/stdio/vscanf.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/newlib/libc/stdio/vscanf.c b/newlib/libc/stdio/vscanf.c index e559b77a8..59c63738a 100644 --- a/newlib/libc/stdio/vscanf.c +++ b/newlib/libc/stdio/vscanf.c @@ -18,35 +18,37 @@ */ #include <_ansi.h> -#include <reent.h> #include <stdio.h> +#include "local.h" + #ifdef _HAVE_STDC #include <stdarg.h> #else #include <varargs.h> #endif -#include "local.h" + +/* + * vscanf + */ #ifndef _REENT_ONLY int -_DEFUN(vscanf, (fmt, ap), - _CONST char *fmt _AND - va_list ap) +_DEFUN (vscanf, (fmt, ap), + _CONST char *fmt _AND + va_list ap) { - _REENT_SMALL_CHECK_INIT (_REENT); return __svfscanf_r (_REENT, _stdin_r (_REENT), fmt, ap); } #endif /* !_REENT_ONLY */ int -_DEFUN(_vscanf_r, (ptr, fmt, ap), - struct _reent *ptr _AND - _CONST char *fmt _AND - va_list ap) +_DEFUN (_vscanf_r, (ptr, fmt, ap), + struct _reent *ptr _AND + _CONST char *fmt _AND + va_list ap) { - _REENT_SMALL_CHECK_INIT (ptr); return __svfscanf_r (ptr, _stdin_r (ptr), fmt, ap); } |