Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
char commaCount = 0;
char data[20] ;
char done = 0;
char count=0;
char LL;
for(LL=0;LL<2;LL++) //Loop 2 times for Longitude and Latitude strings
{
while( != '$'); //Wait until beginning of new printf
while(getch() != ',');//wait until we get out first comma
while(commaCount < 4) // This is the amount of data we need... 4 commas worth
{
count=0; //count variable for placing data in loop
while(1) //loop getting all data possible
{
data[count] = getch(); //place data into variable
count++; //Increase count
if(data = ',') //if data is a command break the loop
break;
}
commaCount++; //Loop is broken so increase the comma count
}
}