hey, I am writing a c program that searches a text file for a keyword and count the number of times it occurs in the text file.
this is what I have so far
Code:printf("Enter A Single keyword:");
scanf("%s",keyword);
while(!feof(fptr))
{
fscanf(fptr,"%s",key_temp);
if(strcmp(keyword,key_temp)==1)
{
if(keyword==key_temp)
{
k_word++;
}
}