This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

scanf() cand read what printf() produced: NaNs and Inf


Hi,

printf() generate special tokens when outputing float/doubles that are
not numbers (NaN) or are infinity (Inf).
However, scanf() can't read those tokens. Is this deliberate? Is there a
standard for these cases? If I contribute with a patch to correct the
problem will it (in principle) be accepted?

Thanks,
Joao
-- 
Joao Cardoso                |   e-mail: jcardoso@inescn.pt
INESC, R. Jose Falcao 110   |   tel:	+ 351 2 2094322
4050 Porto, Portugal        |   fax:	+ 351 2 2008487


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