summaryrefslogtreecommitdiff
path: root/lib/xstrtod.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-03-24 18:13:56 +0000
committerJim Meyering <jim@meyering.net>1996-03-24 18:13:56 +0000
commita9ff449aa6e34daa40b8d9e9df7506fa86d3ea3e (patch)
tree44ed685aed59861c21932fce0032ca83a0745777 /lib/xstrtod.c
parent236c02759b918769c9a22e38c8ee5c9d797fc640 (diff)
downloadcoreutils-a9ff449aa6e34daa40b8d9e9df7506fa86d3ea3e.tar.xz
.
Diffstat (limited to 'lib/xstrtod.c')
-rw-r--r--lib/xstrtod.c5
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;