]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(xstrtod): Accept an extra arg, specifying the conversion function.
authorJim Meyering <jim@meyering.net>
Thu, 27 Nov 2003 07:47:22 +0000 (07:47 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 27 Nov 2003 07:47:22 +0000 (07:47 +0000)
lib/xstrtod.h

index 7291850338f6f463dd9568993a3645aef3913306..0a63c1501f2f9bdb64fdca3e7bf62f0f2f34a2d6 100644 (file)
@@ -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 */