6 ms·
Right — ferror() does not set errno, and so perror() is not appropriate here. fprintf(stderr, ...) would be better.
by andreyv 5y ago
Right — ferror() does not set errno, and so perror() is not appropriate here. fprintf(stderr, ...) would be better.