diff options
-rw-r--r-- | lib/xstrtod.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/xstrtod.h b/lib/xstrtod.h new file mode 100644 index 000000000..69c787711 --- /dev/null +++ b/lib/xstrtod.h @@ -0,0 +1,15 @@ +#ifndef XSTRTOD_H +#define XSTRTOD_H 1 + +#ifndef __P +# if defined (__GNUC__) || (defined (__STDC__) && __STDC__) +# define __P(args) args +# else +# define __P(args) () +# endif /* GCC. */ +#endif /* Not __P. */ + +int + xstrtod (const char *str, const char **ptr, double *result); + +#endif /* XSTRTOD_H */ |