These lines are wrong:

strtok(NULL,"separator");

strtok is not looking for the separator, but for the text "separator", and of course does not find it. This causes your line parsing becoming out of sync at every other line.

You can find out such issues by looking at the parameters, f.i.

string s = strtok(0, " "); //"at"
printf("\n%s",s);

If it does not print "at", something went wrong before.