this is part of my codeCode:while(fgets(line,Char,que)!=NULL && strcmp(line,"quit") !=0)//when the command is not eof
{
printf("line == %s\n", line);
token1=strtok(line," \n\t");//get the command
while(token1 != NULL)//when command is not quit
{
printf("token1 = %s\n",token1);
if(strcmp("count",token1) ==0)//when command is count
{
the line
if(strcmp("count",token1) ==0)//when command is count
gave me error Segmentation Fault (core dumped)
whats wrong with it?