www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/07/26/12:57:25

From: chan AT turing DOT scs DOT carleton DOT ca (Yuet-Ning Chan)
Subject: Re: page
To: dj AT ctron DOT com (DJ Delorie)
Date: Mon, 26 Jul 93 12:20:54 EDT
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> 
> fseek is capable of seeking relative to the current position:
> 
> skip_backward(int file, int amount)
> {
>   fseek(file, -amount, 1);
> }
> 
> Zero says from the begining, one is from current, two is from end.
> Negative amounts mean backward.
> 
The problem is how do I find out what is amount?
I can't read backward to find out where is the starting point
of a page.
 


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019