hi lets say ı have a input like this:
set 15,10,55,20,30,-30,1 move 0,0 move 2,-1 move 0,0 move 1,-3 move 0,0 move 0,0 move 1,2 move 0,0 move 0,0 move 1,0 changemode 2 move 0,0 move 0,0 move 0,3 move 0,0 goback 1 changespeed 40,40 ...
while(1)
{
if(fgets(command,128,fptr) != 0)
{
if(strncmp(command,"move",4)==0)
{
fscanf(fptr,"%s %d %d",inputcommand,firstargument,secondargumant);
}
if(strncmp(command,"set",3)==0)
{
fscanf(fptr,"%s %d ....%d",inputcommand,firstargument,secondargumant........,sevenargument);
}
else{break;}
}
fscanf returns to the first line and cant read the arguments how to get the arguments on the line that i read