Closed pstef closed 3 weeks ago
The result of fgetc() is an int. It shouldn't be stored in a char, which might be unsigned, and EOF might be negative. It's exactly what happens on my Arm-based machine.
The result of fgetc() is an int. It shouldn't be stored in a char, which might be unsigned, and EOF might be negative. It's exactly what happens on my Arm-based machine.