This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] sscanf vs ERANGE vs finitel
- From: Andreas Schwab <schwab at suse dot de>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>,Nathan Myers <ncm at cantrip dot org>, David Edelsohn <dje at watson dot ibm dot com>
- Date: Sat, 20 Mar 2004 17:02:18 +0100
- Subject: Re: [RFC] sscanf vs ERANGE vs finitel
- References: <405C65CC.3040903@suse.de>
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."