Russell Coker <russell(a)coker.com.au> wrote:
Below is my rough analog to fgets() which takes either
\r or \n as the end of
a line. It works because I don't mind getting the occasional empty line in
the middle of the file, programs which can't handle extra empty lines won't
work with this.
It seems correct to me. Of course, being written by Russell, one can expect it
to be correct.