Instead, check the return value of the input function directly: while(fgets(line, max, fp) != NULL) With a very few possible exceptions, you don't use feof ...
確定! 回上一頁