Panda3D

pstrtod.h
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file pstrtod.h
10 * @author drose
11 * @date 2009-06-13
12 */
13
14 #ifndef PSTRTOD_H
15 #define PSTRTOD_H
16
17 #include "dtoolbase.h"
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 EXPCL_DTOOL_DTOOLBASE double
24 pstrtod(const char *nptr, char **endptr);
25
26 EXPCL_DTOOL_DTOOLBASE double
27 patof(const char *str);
28
29 #ifdef __cplusplus
30 }; /* end of extern "C" */
31 #endif
32
33 #endif
dtoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
patof
double patof(const char *str)
This function re-implements atof, to avoid the problems that occur when the LC_NUMERIC locale gets se...
Definition: pstrtod.cxx:156
pstrtod
double pstrtod(const char *nptr, char **endptr)
This function re-implements strtod, to avoid the problems that occur when the LC_NUMERIC locale gets ...
Definition: pstrtod.cxx:31