static char *getKey(const char *line, char *key, size_t size)
{
/* null-terminated string */
- while (isspace(*line))
+ while (isspace((unsigned char)*line))
++line;
int i = 0;
- while (*line != '=' && !isspace(*line) && size)
+ while (*line != '=' && !isspace((unsigned char)*line) && size)
{
key[i++] = *line;
++line;
{
while (*line++ != '=')
;
- while (isspace(*line))
+ while (isspace((unsigned char)*line))
++line;
int i = 0;
while (*line && size)
for(i = 0; i < NMEAP_MAX_SENTENCE_LENGTH; i++)
{
- char c = *s++;
+ unsigned char c = *s++;
if (c == '.')
{
*/
if (sentence->callout != 0)
(*sentence->callout)(context, vtg, context->user_data);
-
+
return NMEA_GPVTG;
}