Xref: utzoo comp.os.msdos.programmer:781 comp.lang.c:31628 Path: utzoo!attcan!uunet!snorkelwacker!mintaka!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.os.msdos.programmer,comp.lang.c Subject: Re: TC bugs Keywords: bug, TC Message-ID: <17635@haddock.ima.isc.com> Date: 5 Sep 90 19:50:35 GMT References: <35025@unix.cis.pitt.edu> Reply-To: karl@kelp.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 11 In article <35025@unix.cis.pitt.edu> ydist@unix.cis.pitt.edu (Yijun Ding) writes: >The second, I am not sure. The "a+" format does not allow write to the >beginning of files in TC. On unix, the printout is "isis is a ..." instead >of "This is a..." on TC. TC is correct, some versions of Unix have it wrong (when measured against the ANSI C Standard). "Opening a file with append mode causes all subsequent writes to be forced to the then current end-of-file, regardless of intervening calls to fseek()." [4.9.5.3] Karl W. Z. Heuer (karl@kelp.ima.isc.com or ima!kelp!karl), The Walking Lint