I am running into an error that states:
warning: comparison between pointer and integer
230 | while (currentWord != NULL && wordCountChoice > currentWord->count)
When running this code:
Code:
currentWord = wordptr;
wordCountChoice;
while (currentWord != NULL && wordCountChoice > currentWord->count)
{
//prints as word,# where # is the word occurance count
fprintf (outputFile, "%s,%d \n", currentWord->str, currentWord->count);
printf ("%s",currentWord->str);
currentWord = currentWord->next;
}
If I have written this code correctly then the objective of the code is to only display words from a doubly linked list that have a word count greater or equal to the users wordCountChoice.
Any help is appreciated.