coreutils/lib/xstrtod.h

30 lines
1.0 KiB
C
Raw Normal View History

/* Error-checking interface to strtod-like functions.
2003-06-18 16:03:45 +08:00
Copyright (C) 1996, 1998, 2003, 2004 Free Software Foundation, Inc.
2003-06-18 16:03:45 +08:00
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
2005-05-14 15:58:06 +08:00
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
2003-06-18 16:03:45 +08:00
/* Written by Jim Meyering. */
1995-11-16 05:59:20 +08:00
#ifndef XSTRTOD_H
1996-07-15 11:56:06 +08:00
# define XSTRTOD_H 1
1995-11-16 05:59:20 +08:00
# include <stdbool.h>
bool xstrtod (const char *str, const char **ptr, double *result,
double (*convert) (char const *, char **));
1995-11-16 05:59:20 +08:00
1996-10-10 12:15:54 +08:00
#endif /* not XSTRTOD_H */