minhumidity = atoi(buffer+ MINHUM_IDX);
buffer[MINHUM_IDX] = 0; // step on processed field to place null terminator
maxhumidity = atoi(buffer+ MAXHUM_IDX);
buffer[MAXHUM_IDX] = 0; // step on processed field to place null terminator
humidity = atoi(buffer+ HUMIDITY_IDX);
buffer[HUMIDITY_IDX] = 0; // step on processed field to place null terminator
mintemperature = atoi(buffer+ MINTEMP_IDX);
buffer[MINTEMP_IDX] = 0; // step on processed field to place null terminator
maxtemperature= atoi(buffer+ MAXTEMP_IDX);
buffer[MAXTEMP_IDX] = 0; // step on processed field to place null terminator
temperature= atoi(buffer+ NODTEMP_IDX);
for (i = 0; i < 6; ++i) // loop through all six fields
{
*destination[i] = atoi(fields[i]); // get it
fields[i][0] = 0; // set up for the next atoi()
}
}
Sorry about not getting the response formatted better - I’m having a senior moment and forget how