scanf() (>>) can't read what printf() (zz) produced: NaNs and Inf

Joe Buck jbuck@Synopsys.COM
Wed Mar 31 23:46:00 GMT 1999


> > You sent this to the egcs list, but egcs does not provide printf and
> > scanf.  You'll need to talk to whoever provides your C library (if you run
> > Linux and it is GNU libc, they have their own bug list
> > (bug-glibc@gnu.org).
> 
> Perhaps you are right, but in libio/floatconv.c of the egcs distribution
> are provisions for dealing with NaN and Inf, perhaps because of '<<' and
> '>>' when applied to float/doubles.

Right, egcs is providing a C++ library but not a C library.

> Perhaps I should send the query to the libstdc++ maintainers?

They won't be able to fix scanf for you.





More information about the Gcc mailing list