diff options
-rw-r--r-- | lib/xstrtod.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/xstrtod.c b/lib/xstrtod.c index 838c5c463..bab8b1219 100644 --- a/lib/xstrtod.c +++ b/lib/xstrtod.c @@ -14,6 +14,11 @@ double strtod (); #include <ctype.h> #include "xstrtod.h" +/* An interface to strtod that encapsulates all the error checking + one should usually perform. Like strtod, but return zero upon + successful conversion and put the result in *RESULT. Return + non-zero upon any failure. */ + int xstrtod (str, ptr, result) const char *str; |