#include <ctype.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <string.h>
static uint32_t tokenToInt(const char *s, int precision)
static uint32_t tokenToInt(const char *s, int precision)
/* north lat is +, south lat is - */
if (*phem == 'N')
/* north lat is +, south lat is - */
if (*phem == 'N')
return ns * convertToDegree(plat);
return ns * convertToDegree(plat);
+ if (*phem == 0)
+ return 0;
+
/* west long is negative, east long is positive */
if (*phem == 'E')
/* west long is negative, east long is positive */
if (*phem == 'E')
- }
-
- if (*phem == 0)
- {
- return 0;
- }
return ew * convertToDegree(plot);
}
return ew * convertToDegree(plot);
}
uint32_t alt;
if (*palt == 0)
uint32_t alt;
if (*palt == 0)