Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ncar!oddjob!uwvax!umn-d-ub!umn-cs!shamash!jwabik From: jwabik@shamash.UUCP (Jeff Wabik) Newsgroups: comp.lang.c Subject: xseek(y,z,0) .vs. xseek(y,z,1) Keywords: How does it work? Is one faster? Message-ID: <6463@shamash.UUCP> Date: 6 Jun 88 15:46:11 GMT Organization: Control Data Corporation, Bloomington, MN. Lines: 30 Does anyone know the algorithms for lseek and fseek? I.E. Specifically, which is faster and why: Sample #1: for (i=10000; i < 100000000; i+=10000) { fseek(fp,i,0); . . } Sample #2: for (i=10000; i < 100000000; i+=10000) { fseek(fp,10000,1); . . } Thanks in advance .. -Jeff --- Jeff A. Wabik INTERNET: jwabik@shamash.cdc.com ____ ____ UUCP: {rosevax,umn-cs,bungia,ems}!shamash!jwabik / ___||___ \ | |___ ___| | Control Data Corporation - Better living through 64 bits. \____||____/ Live long and program.