From: Jim Meyering Date: Sun, 24 Mar 1996 18:13:56 +0000 (+0000) Subject: . X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3738de89a7147a0e0fe78f80757caedc6834cf3a;p=pspp . --- 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 #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;