Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Les Cargill <lcargill99@comcast.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: fseek |
| Date | 2012-07-26 23:15 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <jut4c2$bgf$2@dont-email.me> (permalink) |
| References | <ab0dc9f6-1432-4b00-b8db-a68d3b14f6a9@googlegroups.com> <af81641a-befa-4e44-b8f4-81c33e202d93@googlegroups.com> |
cartec69@gmail.com wrote: > On Thursday, July 26, 2012 9:22:22 PM UTC-5, Bill Cunningham wrote: >> l=fseek(fp,0,SEEK_SET); > > You are instructing the file (fp) to seek to a position 0 bytes away > from the current position (SEEK_SET). SEET_SET is relative to the beginning of the file. SEEK_CUR is relative to the current position. SEEK_END is relative to the end. It's effectively a no-op that > returns the current file position, which will always be zero since > you've just opened the file and done nothing with it. If the file > size is non-zero, the while loop will never terminate. > That's true. -- Les Cargill
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
fseek Bill Cunningham <billcun@suddenlink.net> - 2012-07-26 19:22 -0700
Re: fseek cartec69@gmail.com - 2012-07-26 20:46 -0700
Re: fseek Les Cargill <lcargill99@comcast.com> - 2012-07-26 23:15 -0500
Re: fseek Les Cargill <lcargill99@comcast.com> - 2012-07-26 23:13 -0500
Re: fseek James Kuyper <jameskuyper@verizon.net> - 2012-07-27 07:20 -0400
Re: fseek Les Cargill <lcargill99@comcast.com> - 2012-07-27 12:52 -0500
Re: fseek Keith Thompson <kst-u@mib.org> - 2012-07-27 16:11 -0700
Re: fseek Keith Thompson <kst-u@mib.org> - 2012-07-27 16:54 -0700
Re: fseek Les Cargill <lcargill99@comcast.com> - 2012-07-27 23:10 -0500
Re: fseek James Kuyper <jameskuyper@verizon.net> - 2012-07-28 11:25 -0400
Re: fseek Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-07-28 17:02 +0100
Re: fseek Les Cargill <lcargill99@comcast.com> - 2012-07-28 11:39 -0500
Re: fseek Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-07-28 17:58 +0100
Re: fseek Les Cargill <lcargill99@comcast.com> - 2012-07-28 16:07 -0500
Re: fseek Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-07-28 22:30 +0100
Re: fseek John Gordon <gordon@panix.com> - 2012-07-27 05:26 +0000
Re: fseek gordonb.rclzu@burditt.org (Gordon Burditt) - 2012-07-27 12:30 -0500
Re: fseek Bill Cunningham <billcun@suddenlink.net> - 2012-07-27 15:36 -0700
Re: fseek Bill Cunningham <billcun@suddenlink.net> - 2012-07-27 15:36 -0700
csiph-web