|
From: Ethan M. <merritt@u.washington.edu> - 2005-06-10 05:07:37
|
On Thursday 09 June 2005 07:34 pm, Hans-Bernhard Br=F6ker wrote: > > strtod() is more portable than %n, > > Unless we have somebody verify to us that strtod() implements the same > ANSI standard more correctly than sscanf(), on OS-9, we don't know that. ?? The point is that using strtod we don't *need* %n. Where does "more correctly" come into it? > > and allows more complete > > error reporting than sscanf(). > > No, it doesn't. It tells us nothing that sscanf()'s return value, > combined with the output of %n, wouldn't. strtod sets errno; scanf does not. Not that it's a big deal, since the code currently has no provision for reported over- or under- flow. =2D-=20 Ethan A Merritt Biomolecular Structure Center University of Washington 98195-7742 |