Hacker News new | ask | show | jobs
by PennRobotics 1569 days ago
Would perror() return the first/oldest error or the last?
1 comments

Right — ferror() does not set errno, and so perror() is not appropriate here. fprintf(stderr, ...) would be better.