This is the mail archive of the
mailing list for the GCC project.
scanf() cand read what printf() produced: NaNs and Inf
- To: egcs at egcs dot cygnus dot com
- Subject: scanf() cand read what printf() produced: NaNs and Inf
- From: Joao Cardoso <jcardoso at inescn dot pt>
- Date: Mon, 29 Mar 1999 21:17:18 +0100
- Organization: INESC
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?
Joao Cardoso | e-mail: firstname.lastname@example.org
INESC, R. Jose Falcao 110 | tel: + 351 2 2094322
4050 Porto, Portugal | fax: + 351 2 2008487