FILE *finp1 = file.txt
--------------
web: add $1,$2,$3
sub $4,$5,$6
end: .word 5
------------------
for some reason i can not go in my 2nd if statment. i think bc i am not using strtok right
------------------------------------------------code----------------
while(fgets(line, 20, finp1) != NULL) //works
{
tptr = strtok(line, ":"); //works
if(tptr != NULL)
{
if(strstr(line, ".word") == 0) //i cant get in this if statment
{
tptr2 = strtok(line, " ");
tptr2 = strtok(NULL, "");
if(tptr2 != NULL)
{
//do some thing
}
}
}
else //works
{
}
}