| delorie.com/archives/browse.cgi | search |
| Date: | Mon, 26 Jul 93 10:46:37 -0400 |
| From: | DJ Delorie <dj AT ctron DOT com> |
| To: | rob AT dinner DOT asrc DOT albany DOT edu |
| Cc: | djgpp AT sun DOT soe DOT clarkson DOT edu |
| Subject: | Re: buggy mail |
> You wrote:
> > skip_backward(int file, int amount)
> > {
> > fseek(file, -amount, 1);
> > }
> I'm sure most of use knew what you meant, but 'file'
> should be a FILE *, not an int.
You're right. The two cases for back-stepping are (in bizarre
syntax):
fseek (FILE *fp, int -amount, 1);
lseek (int fd, int -amount, 1);
If in doubt, consult a local Unix man page :-)
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |