3 ms·fgetc() must return to int instead of char, otherwise you can not detect EOF.by synergy20 3y agofgetc() must return to int instead of char, otherwise you can not detect EOF.