if I do
size_t len = 0;
while (line[len] != '\0') len++;
Then i will get a length of 10
for a string like this
0;001.mp3
And like you where saying...
gets(line);
printf("Length = %d\n", strlen(line));
For string 0;001.mp3
Wil get me the same result. 10... so if we do that minus one than we have the actual lenght.
I diden't tell you but the string "line" look like this at the end "\r\n"