#include <cstdio> int main() { double a, b; if( 2 == sscanf( "$GPGGA,094444.00,3413.1211,N,11708.6596,E,1,11,0.9,67.59,M,-6.20,M,,*4D", "%*[^,],%*f,%lf,%*[^,],%lf", &a, &b ) ) printf( "%f %f\n", a, b ); return 0; }