In article <1416 at software.software.org> marshall at software.org (Eric Marshall) writes: > I was trying to use lseek to rewind to the beginning >of input (a file), but I ran into difficulties. Don't mix direct system calls such as lseek() with stdio operations such as fopen() and getc(). Use fseek() instead.