3 ms·
Would perror() return the first/oldest error or the last?
by PennRobotics 5y ago
Would perror() return the first/oldest error or the last?
- andreyv 5y agoRight — ferror() does not set errno, and so perror() is not appropriate here. fprintf(stderr, ...) would be better.