xseek(y,z,0) .vs. xseek(y,z,1)
    Jeff Wabik 
    jwabik at shamash.UUCP
       
    Tue Jun  7 01:46:11 AEST 1988
    
    
  
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 at shamash.cdc.com
  ____  ____    UUCP: {rosevax,umn-cs,bungia,ems}!shamash!jwabik  
 / ___||___ \   
| |___  ___| |   Control Data Corporation - Better living through 64 bits.
 \____||____/  
		  	   Live long and program.
    
    
More information about the Comp.lang.c
mailing list