So when writing this code and showing the last token it comes with the line delimiter "\n", how do i take that out?
while( fgets( c, MAX_viagens, f) != NULL ) {
int i = 0;
char *p = strtok (c, ":");
char *array[6];
while (p != NULL){
array[i++] = p;
p = strtok (NULL, ":");
}
printf ("%s\n", array[3]);