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

Joao Cardoso jcardoso@inescn.pt
Mon Mar 29 12:17:00 GMT 1999


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


More information about the Gcc mailing list