This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



> > 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.