Closed Mkots closed 2 years ago
You can use something like that for your minmea.c
int hex2int(char str[]){; char *endptr; int result; if(!(result = strtol(str, &endptr, 16))){ result = -1; }; return result; }
This is a good question. It's been a while since this was opened, closing due to that duration but we'd be interested in a PR if you'd like to improve this parsing code.
You can use something like that for your minmea.c