diff options
author | Jim Meyering <jim@meyering.net> | 1996-03-24 18:13:56 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-03-24 18:13:56 +0000 |
commit | a9ff449aa6e34daa40b8d9e9df7506fa86d3ea3e (patch) | |
tree | 44ed685aed59861c21932fce0032ca83a0745777 | |
parent | 236c02759b918769c9a22e38c8ee5c9d797fc640 (diff) | |
download | coreutils-a9ff449aa6e34daa40b8d9e9df7506fa86d3ea3e.tar.xz |
.
-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; |