|
From:
<br...@ph...> - 2005-06-09 13:16:48
|
Robert Hart wrote:
> strtod() is indeed significantly faster than sscanf.
And I still don't see why that should be the case...
> Can anybody come up with any cases where these two methods give
> different results/error handling?
Well, here's an ancient comment right taken directly from datafile.c:
/* cannot trust strtod - eg strtod("-",&p) */
> strtod is ANSI C, so should be
> portable.
So should sscanf().
|