Mercurial > hg > octave-shane > gnulib-hg
diff lib/xstrtod.c @ 568:a0eb0db5621b
.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 24 Mar 1996 18:13:56 +0000 |
parents | 9af85df20faa |
children | f8f1814bb96c |
line wrap: on
line diff
--- a/lib/xstrtod.c +++ b/lib/xstrtod.c @@ -14,6 +14,11 @@ #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;