[RFC] sscanf vs ERANGE vs finitel

Andreas Schwab schwab@suse.de
Sat Mar 20 16:29:00 GMT 2004


Paolo Carlini <pcarlini@suse.de> writes:

> Why bother checking finitel? Is it really possible that sscanf("%Lf")
> doesn't set ERANGE, still !finitel is true??

Yes, Inf and NaN are both in range, but not finite.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Libstdc++ mailing list