Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-11 10:26:10

0001 /* This file is part of Libspectre.
0002  *
0003  * Copyright (C) 2007 Albert Astals Cid <aacid@kde.org>
0004  * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
0005  *
0006  * Libspectre is free software; you can redistribute it and/or modify
0007  * it under the terms of the GNU General Public License as published by
0008  * the Free Software Foundation; either version 2, or (at your option)
0009  * any later version.
0010  *
0011  * Libspectre is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  * GNU General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU General Public License
0017  * along with this program; if not, write to the Free Software
0018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
0019  */
0020 
0021 /* This function comes from spectre-utils from libspectre */
0022 
0023 #ifndef GSTRTOD_H
0024 #define GSTRTOD_H
0025 
0026 #include "poppler_private_export.h"
0027 
0028 #ifdef __cplusplus
0029 extern "C" {
0030 #endif
0031 
0032 /* This function behaves like the standard atof()/(strtod() function
0033  * does in the C locale. It does this without actually changing
0034  * the current locale, since that would not be thread-safe.
0035  * A limitation of the implementation is that this function
0036  * will still accept localized versions of infinities and NANs.
0037  */
0038 double POPPLER_PRIVATE_EXPORT gatof(const char *nptr);
0039 double gstrtod(const char *nptr, char **endptr);
0040 
0041 #ifdef __cplusplus
0042 }
0043 #endif
0044 
0045 #endif