Article View: comp.sys.xerox
Article #393Re: DEI and VMS 4.6
From: ritchie
Date: Fri, 04 Dec 1987 06:46
Date: Fri, 04 Dec 1987 06:46
12 lines
1100 bytes
1100 bytes
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
Technical Details
Message-ID:
<1000001@hpldola.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!rochester!bbn!uwmcsd1!ig!jade!ucbvax!hplabs!hpcea!hpfcdc!hpldola!ritchieReferences:
<8711250839.AA09918@steerpike.thorn-emi-crl.co.uk>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!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