Consider this loop:
The function time_check_legal(const char *_time) also uses strtok(), twice, and it seems it messes up the strtok loop. Is this normal ? Is there a workaround ?Code:while (t != NULL) { t = strtok(NULL, tbc); if (t != NULL) { if(time_check_legal(t)) row_add_key(_row, t); // <--- MESSES UP } }
Best wishes, Des