Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!bbn!uwmcsd1!ig!jade!ucbvax!hplabs!hpcea!hpfcdc!hpldola!ritchie
From: ritchie@hpldola.UUCP
Newsgroups: comp.sys.xerox
Subject: Re: DEI and VMS 4.6
Message-ID: <1000001@hpldola.HP.COM>
Date: Fri, 4-Dec-87 01:46:18 EST
Article-I.D.: hpldola.1000001
Posted: Fri Dec  4 01:46:18 1987
Date-Received: Sat, 12-Dec-87 09:34:20 EST
References: <8711250839.AA09918@steerpike.thorn-emi-crl.co.uk>
Organization: HP Elec. Design Div. -ColoSpgs
Lines: 12



  A big thing that is busted with 4.6 is the ftell/ungetc combination. If
you do an ftell after an ungetc under 4.6, ftell() reports the position
prior to the ungetc (which I understand is compatible with the new ANSI
standard). Unfortunately, this breaks any code that used this combination
using the old method of reporting the offset into a file.

  Fix? Use fseek with a -1 relative displacement instead of an ungetc call.
(This is portable to any version of the RTLibs).
					Dave Ritchie
					hplabs!hp-lsd!ritchie