www.delorie.com/archives/browse.cgi | search |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |