summaryrefslogtreecommitdiff
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
commit3738de89a7147a0e0fe78f80757caedc6834cf3a (patch)
treee8aa2471ff74642ecdfcf2c2edfecfcfca9c18ec
parent4362a1c9a009331196d9b9a8165840dd54e589c3 (diff)
downloadgnulib-3738de89a7147a0e0fe78f80757caedc6834cf3a.tar.gz
.
-rw-r--r--lib/xstrtod.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/xstrtod.c b/lib/xstrtod.c
index 838c5c4632..bab8b1219a 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;