}
else if (key_len == 8 && strncasecmp( key, "latitude", key_len ) == 0 && value != NULL)
{
- line_latlon.lat = strtod(value, NULL);
+ line_latlon.lat = g_strtod(value, NULL);
}
else if (key_len == 9 && strncasecmp( key, "longitude", key_len ) == 0 && value != NULL)
{
- line_latlon.lon = strtod(value, NULL);
+ line_latlon.lon = g_strtod(value, NULL);
}
else if (key_len == 8 && strncasecmp( key, "altitude", key_len ) == 0 && value != NULL)
{
- line_altitude = strtod(value, NULL);
+ line_altitude = g_strtod(value, NULL);
}
else if (key_len == 7 && strncasecmp( key, "visible", key_len ) == 0 && value[0] != 'y' && value[0] != 'Y' && value[0] != 't' && value[0] != 'T')
{
}
else if (key_len == 8 && strncasecmp( key, "unixtime", key_len ) == 0 && value != NULL)
{
- line_timestamp = strtod(value, NULL);
+ line_timestamp = g_strtod(value, NULL);
if ( line_timestamp != 0x80000000 )
line_has_timestamp = TRUE;
}
static gboolean set_c_ll ( const char **attr )
{
if ( (c_slat = get_attr ( attr, "lat" )) && (c_slon = get_attr ( attr, "lon" )) ) {
- c_ll.lat = strtod(c_slat, NULL);
- c_ll.lon = strtod(c_slon, NULL);
+ c_ll.lat = g_strtod(c_slat, NULL);
+ c_ll.lon = g_strtod(c_slon, NULL);
return TRUE;
}
return FALSE;
break;
case tt_wpt_ele:
- c_wp->altitude = strtod ( c_cdata->str, NULL );
+ c_wp->altitude = g_strtod ( c_cdata->str, NULL );
g_string_erase ( c_cdata, 0, -1 );
break;
case tt_trk_trkseg_trkpt_ele:
- c_tp->altitude = strtod ( c_cdata->str, NULL );
+ c_tp->altitude = g_strtod ( c_cdata->str, NULL );
g_string_erase ( c_cdata, 0, -1 );
break;
static const char *usgs_scale_factor() {
static char str[11];
- static int i = 0;
snprintf(str,sizeof(str),"%d%d%d", 044, 393, 0xA573);
return str;
}