summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-11-27 07:47:22 +0000
committerJim Meyering <jim@meyering.net>2003-11-27 07:47:22 +0000
commit05c5b74a058780b6ac79a60e1b06e182f3b877e4 (patch)
tree052691c5a51f30bb9e79820618723569212d16a1
parentab5dba9e1b6351f0c9a4eb3fdacae5ede216078c (diff)
downloadcoreutils-05c5b74a058780b6ac79a60e1b06e182f3b877e4.tar.xz
(xstrtod): Accept an extra arg, specifying the conversion function.
-rw-r--r--lib/xstrtod.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/xstrtod.h b/lib/xstrtod.h
index 729185033..0a63c1501 100644
--- a/lib/xstrtod.h
+++ b/lib/xstrtod.h
@@ -1,4 +1,4 @@
-/* Error-checking interface to strtod.
+/* Error-checking interface to strtod-like functions.
Copyright (C) 1996, 1998, 2003 Free Software Foundation, Inc.
@@ -21,6 +21,7 @@
#ifndef XSTRTOD_H
# define XSTRTOD_H 1
-int xstrtod (const char *str, const char **ptr, double *result);
+int xstrtod (const char *str, const char **ptr, double *result,
+ double (*convert) (char const *, char **));
#endif /* not XSTRTOD_H */