JaMe
Junior Member level 1
I've got variable like this
char buffer[]="$GPSACP: 140754.999,0714.0826S,11244.0902E,1.6,30.2,3,351.22,0.25,0.13,010707,05";
I'd like to make routine to find comma location. This is the program routine i've made.
char *FindComma(char *buffer, unsigned char n){
char m;
for (m=0; m<n; m++){
buffer=strchr(buffer, ',');
}
return buffer;
}
But it doesn't work. Any suggestion ?
char buffer[]="$GPSACP: 140754.999,0714.0826S,11244.0902E,1.6,30.2,3,351.22,0.25,0.13,010707,05";
I'd like to make routine to find comma location. This is the program routine i've made.
char *FindComma(char *buffer, unsigned char n){
char m;
for (m=0; m<n; m++){
buffer=strchr(buffer, ',');
}
return buffer;
}
But it doesn't work. Any suggestion ?