* libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
code to update nread as each character is processed instead
of using buffer contents which throw away leading zeroes.
+Fri Mar 17 15:37:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
+
+ * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
+ code to update nread as each character is processed instead
+ of using buffer contents which throw away leading zeroes.
+
Mon Mar 13 15:22:00 2000 Sergei Organov <osv@javad.ru>
* libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
*p++ = c;
width--;
fskip:
+ ++nread;
if (--fp->_r > 0)
fp->_p++;
else
{
/* no digits at all */
while (p > buf)
- ungetc (*(u_char *)-- p, fp);
+ {
+ ungetc (*(u_char *)-- p, fp);
+ --nread;
+ }
goto match_failure;
}
/* just a bad exponent (e and maybe sign) */
c = *(u_char *)-- p;
+ --nread;
if (c != 'e' && c != 'E')
{
_CAST_VOID ungetc (c, fp); /* sign */
c = *(u_char *)-- p;
+ --nread;
}
_CAST_VOID ungetc (c, fp);
}
}
nassigned++;
}
- nread += p - buf;
break;
}
#endif /* FLOATING_POINT */