I'm trying to read lines of text from the file pointed to by `fp'; the inner while continues forever for some reason. Doesn't fgets append the string terminator to `thisline' after reading a line from the file? Thanks.
Code:#define MAX_COLUMNS 80
/* ... */
while(NULL != fgets(thisline, MAX_COLUMNS + 1, fp)){
i = 0; // Reset counter for next line
/* ... */
while('\0' != thisline[i]){
/* Can't get out of this! */
i++;
}
}