News for hackers. Stuff that matters.
Re:Bugs in Hello World by wahern on Wednesday March 09, 2022 @02:53AM (#30611967)
Because errors on FILE streams are persisted until clearerr, it should be sufficient to check the return value of fflush at the end of the program. Presumably the FILE I/O interface was deliberately designed this way, so error checking could be consolidated at the end of a series of operations.

There are no comments on this comment yet.