Within the man page for ferror and feof, there is a description for the return value of feof twice. The second description is for ferror. >This: > The feof() function returns nonzero if the end-of-file indicator > is set for stream; otherwise, it returns zero. > > The feof() function returns nonzero if the error indicator is set > for stream; otherwise, it returns zero. >Should be this: > The feof() function returns nonzero if the end-of-file indicator > is set for stream; otherwise, it returns zero. > > The ferror() function returns nonzero if the error indicator is set > for stream; otherwise, it returns zero.
This was fixed a few weeks ago in my tree :) See <https://github.com/alejandro-colomar/man-pages/commit/9e1f28a8595ce90e7905635faf8542cf8bd674b6>. It's not yet merged into Michael's tree, though. Anyway, thanks, Alex
(In reply to Alejandro Colomar (man-pages) from comment #1) > This was fixed a few weeks ago in my tree :) > > See > <https://github.com/alejandro-colomar/man-pages/commit/ > 9e1f28a8595ce90e7905635faf8542cf8bd674b6>. > > It's not yet merged into Michael's tree, though. > > Anyway, thanks, > > Alex Awesome, thanks.