Firmware/src/gps_std.c
static int nmea_atoi(uint8_t *str)
{
	if (str == NULL || str[0] == 0)
	{
		return 0;
	}
	char *start = (char *)str;
	while (start[0] == '0')
		start++;
	return atoi(start);
}
// Convert string into integer. Empty string is interpreted as 0, trims
// leading zeroes from string before converting.
Convert string into integer. Empty string is interpreted as 0, trims
leading zeroes from string before converting.
Convert string into integer . Empty string is interpreted as 0 trims leading zeroes from string before converting .
static int nmea_atoi(uint8_t *str)
{
	if (str == NULL || str[0] == 0)
	{
		return 0;
	}
	char *start = (char *)str;
	while (start[0] == '0')
		start++;
	return atoi(start);
}
static int nmea_atoi ( uint8_t * str ) { if ( str == NULL || str [ 0 ] == 0 ) { return 0 ; } char * start = ( char * ) str ; while ( start [ 0 ] == ' ' ) start ++ ; return atoi ( start ) ; }
Convert string into integer.
Convert string into integer .