question on lseek behavior

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Jul 7 00:42:33 AEST 1990


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.



More information about the Comp.unix.wizards mailing list