From: Jim Meyering Date: Thu, 27 Nov 2003 07:47:22 +0000 (+0000) Subject: (xstrtod): Accept an extra arg, specifying the conversion function. X-Git-Tag: v5.1.0~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05c5b74a058780b6ac79a60e1b06e182f3b877e4;p=thirdparty%2Fcoreutils.git (xstrtod): Accept an extra arg, specifying the conversion function. --- diff --git a/lib/xstrtod.h b/lib/xstrtod.h index 7291850338..0a63c1501f 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 */