projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4362a1c
)
.
author
Jim Meyering
<jim@meyering.net>
Sun, 24 Mar 1996 18:13:56 +0000
(18:13 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 24 Mar 1996 18:13:56 +0000
(18:13 +0000)
lib/xstrtod.c
patch
|
blob
|
history
diff --git
a/lib/xstrtod.c
b/lib/xstrtod.c
index 838c5c463213ad4d805db6d36d26c2054eab186c..bab8b1219a21f351d88ced4ef907d2eca6163e44 100644
(file)
--- 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;