Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.wizards Subject: Re: question on lseek behavior Message-ID: <13308@smoke.BRL.MIL> Date: 6 Jul 90 14:42:33 GMT References: <1416@software.software.org> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 6 In article <1416@software.software.org> marshall@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.