|
From: Daniel J S. <dan...@ie...> - 2005-06-09 21:11:45
|
Ethan Merritt wrote:
> On Thursday 09 June 2005 09:12 am, Robert Hart wrote:
>=20
>>On Thu, 2005-06-09 at 21:18 +0800, Hans-Bernhard Br=C3=B6ker wrote:
>>
>>>Well, here's an ancient comment right taken directly from datafile.c:
>>>
>>> /* cannot trust strtod - eg strtod("-",&p) */
>=20
>=20
> I cannot make any sense of that comment either. ANSI says, in regard
> to scanf with %f
> "The format of the token should be that expected by the function
> strtod for a floating-point number that uses decimal notation".
> So there doesn't seem to be much room for scanf and strtod to parse
> numbers differently.
Perhaps this was mentioned, but a conjecture on the slowness of scanf() m=
ight be=20
that the number of output arguments is unknown and requires special handl=
ing,=20
whereas strtod() has only one output argument.
Dan
|