From 05c5b74a058780b6ac79a60e1b06e182f3b877e4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 27 Nov 2003 07:47:22 +0000 Subject: (xstrtod): Accept an extra arg, specifying the conversion function. --- lib/xstrtod.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') 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 */ -- cgit v1.2.3-54-g00ecf