diff options
| author | Kurt Schwehr <schwehr@google.com> | 2018-05-23 10:07:49 -0700 |
|---|---|---|
| committer | Kurt Schwehr <schwehr@google.com> | 2018-05-23 10:07:49 -0700 |
| commit | 1d2d1ee73ed2100e5587f5070f97245fcc03cbee (patch) | |
| tree | c20ac412085d39d0ca8bdd5b938a744d05d2ed22 /src/proj_strtod.c | |
| parent | 37ebb8f9f0cc5083d22f84433fb2de0fdde8be00 (diff) | |
| download | PROJ-1d2d1ee73ed2100e5587f5070f97245fcc03cbee.tar.gz PROJ-1d2d1ee73ed2100e5587f5070f97245fcc03cbee.zip | |
Use proj_strtod.h for proj_strtod and proj_atof
Diffstat (limited to 'src/proj_strtod.c')
| -rw-r--r-- | src/proj_strtod.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/proj_strtod.c b/src/proj_strtod.c index fa683465..ad197d2a 100644 --- a/src/proj_strtod.c +++ b/src/proj_strtod.c @@ -85,6 +85,7 @@ Thomas Knudsen, thokn@sdfe.dk, 2017-01-17/2017-09-18 ***********************************************************************/ +#include "proj_strtod.h" #include <stdlib.h> /* for abs */ #include <string.h> /* for strchr */ @@ -93,9 +94,6 @@ Thomas Knudsen, thokn@sdfe.dk, 2017-01-17/2017-09-18 #include <float.h> /* for HUGE_VAL */ #include <math.h> /* for pow() */ -double proj_strtod(const char *str, char **endptr); -double proj_atof(const char *str); - double proj_strtod(const char *str, char **endptr) { double number = 0, integral_part = 0; @@ -321,8 +319,6 @@ double proj_atof(const char *str) { /* compile/run: gcc -DTEST -o proj_strtod_test proj_strtod.c && proj_strtod_test */ #include <stdio.h> -#include <stdlib.h> -#include <string.h> char *un_underscore (char *s) { static char u[1024]; |
