beta-0.89.2
[luatex.git] / source / libs / poppler / poppler-src / goo / gstrtod.h
blobe8abdadf53e9c78ba9476225a65de64113f8c508
1 /* This file is part of Libspectre.
2 *
3 * Copyright (C) 2007 Albert Astals Cid <aacid@kde.org>
4 * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
6 * Libspectre is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
11 * Libspectre is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 /* This function comes from spectre-utils from libspectre */
23 #ifndef GSTRTOD_H
24 #define GSTRTOD_H
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
30 /* This function behaves like the standard atof()/(strtod() function
31 * does in the C locale. It does this without actually changing
32 * the current locale, since that would not be thread-safe.
33 * A limitation of the implementation is that this function
34 * will still accept localized versions of infinities and NANs.
36 double gatof(const char *nptr);
37 double gstrtod(const char *nptr, char **endptr);
39 #ifdef __cplusplus
41 #endif
43 #endif