TC bugs

Karl Heuer karl at haddock.ima.isc.com
Thu Sep 6 05:50:35 AEST 1990


In article <35025 at unix.cis.pitt.edu> ydist at 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 at kelp.ima.isc.com or ima!kelp!karl), The Walking Lint



More information about the Comp.lang.c mailing list