🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2073

Re: TC bugs

#2073
From: Karl Heuer
Date: Wed, 05 Sep 1990 19:50
11 lines
1044 bytes
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
Technical Details
Message-ID: <17635@haddock.ima.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!snorkelwacker!mintaka!spdcc!ima!haddock!karl
References: <35025@unix.cis.pitt.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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