/* Splits float parameters of the CGNSINF response on '.' */
static int gnss_split_on_dot(const char *src, int32_t *f1, int32_t *f2)
/* Splits float parameters of the CGNSINF response on '.' */
static int gnss_split_on_dot(const char *src, int32_t *f1, int32_t *f2)
{
	char *dot = strchr(src, '.');
	if (!dot) {
		return -1;
	}
	*dot = '\0';
	*f1 = (int32_t)strtol(src, NULL, 10);
	*f2 = (int32_t)strtol(dot + 1, NULL, 10);
	if (*f1 < 0) {
		*f2 = -*f2;
	}
	return 0;
}