Something
public text v1 · immutablechar *
GPS::NMEATok(char **buf) {
char *nextTok;
nextTok = *buf;
if (**buf == ',') {
nextTok--;
*nextTok = ' ';
} else if (!**buf) {
return (NULL);
} else {
while (**buf != ',') {
if (!**buf)
return(nextTok);
(*buf)++;
}
}
**buf= 0;
(*buf)++;
return (nextTok);
}