diff options
Diffstat (limited to 'newlib/libc/stdio/vsscanf.c')
-rw-r--r-- | newlib/libc/stdio/vsscanf.c | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/newlib/libc/stdio/vsscanf.c b/newlib/libc/stdio/vsscanf.c index 22ed9cdf7..16f810465 100644 --- a/newlib/libc/stdio/vsscanf.c +++ b/newlib/libc/stdio/vsscanf.c @@ -28,11 +28,12 @@ #endif #include "local.h" -static _READ_WRITE_RETURN_TYPE -_DEFUN(eofread1, (cookie, buf, len), - _PTR cookie _AND - char *buf _AND - int len) +static +_READ_WRITE_RETURN_TYPE +eofread1 (cookie, buf, len) + _PTR cookie; + char *buf; + int len; { return 0; } @@ -44,10 +45,10 @@ _DEFUN(eofread1, (cookie, buf, len), #ifndef _REENT_ONLY int -_DEFUN(vsscanf, (str, fmt, ap), - _CONST char *str _AND - _CONST char *fmt _AND - va_list ap) +_DEFUN (vsscanf, (str, fmt, ap), + _CONST char *str _AND + _CONST char *fmt _AND + va_list ap) { return _vsscanf_r (_REENT, str, fmt, ap); } @@ -55,20 +56,20 @@ _DEFUN(vsscanf, (str, fmt, ap), #endif /* !_REENT_ONLY */ int -_DEFUN(_vsscanf_r, (ptr, str, fmt, ap), - struct _reent *ptr _AND - _CONST char *str _AND - _CONST char *fmt _AND - va_list ap) +_DEFUN (_vsscanf_r, (ptr, str, fmt, ap), + struct _reent *ptr _AND + _CONST char *str _AND + _CONST char *fmt _AND + va_list ap) { FILE f; - f._flags = __SRD | __SSTR; + f._flags = __SRD; f._bf._base = f._p = (unsigned char *) str; f._bf._size = f._r = strlen (str); f._read = eofread1; f._ub._base = NULL; f._lb._base = NULL; - f._file = -1; /* No file. */ - return __svfscanf_r (ptr, &f, fmt, ap); + return __svfscanf_r (ptr, &f, fmt, ap); } + |