Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.6.2.16 $; site prism.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!yale!prism!matt From: matt@prism.UUCP Newsgroups: net.lang.c Subject: ANSI draft - seeking to eof Message-ID: <5400018@prism.UUCP> Date: Wed, 27-Nov-85 14:40:00 EST Article-I.D.: prism.5400018 Posted: Wed Nov 27 14:40:00 1985 Date-Received: Sat, 30-Nov-85 06:42:25 EST Lines: 21 Nf-ID: #N:prism:5400018:000:785 Nf-From: prism!matt Nov 27 14:40:00 1985 The latest (November 11) draft from X3J11 says this about fseek(): int fseek (FILE *stream, long offset, int ptrname) A binary stream need not meaningfully support fseek calls with a ptrname value of SEEK_END. For a text stream, either offset must be zero, or offset must be a value returned by an earlier call to ftell on the same stream and ptrname must be SEEK_SET. [X3J11/85-138, page 109] Does this really mean that there's no guaranteed way to seek to the end of either a text or a binary stream in ANSI C (when such a beast exists)? ------------------------------------------------------------------------------ Matt Landau {cca, ihnp4!inmet, mit-eddie, wjh12} !mirror!matt Mirror Systems, Inc. 2076 Massachusetts Avenue Cambridge, MA 02140