Article View: comp.std.c
Article #141Re: does "always append" apply to "a+" mode?
From: Ian Lance Taylor
Date: Wed, 29 Jul 1992 03:09
Date: Wed, 29 Jul 1992 03:09
17 lines
1188 bytes
1188 bytes
torek@horse.ee.lbl.gov (Chris Torek) writes: >To me, it seems clear that a stream opened in "a+" mode can be read at >any arbitrary position, but all writes to that stream are appended to >the underlying file. There is some dissent, however, on the grounds >that the second paragraph `overrides' the first, i.e., that the first >paragraph does not apply because of the '+' character. Table 4.1 in the Rationale clearly agrees with you (and so do I). Although the Rationale is not part of the standard, it is presumably a reliable guide in a case of ambiguity requiring an interpretation ruling. -- Ian Taylor | ian@airs.com | First to identify quote wins free e-mail message: ``It takes a man months and months to reconcile himself to a new hat. And just when you're preparing to send it to the jumble sale, he says, `That's rather a nice hat you've got on, where did you get it?' ''
Technical Details
Message-ID:
<4985@airs.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!airs!ianReferences:
<24992@dog.ee.lbl.gov>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!airs!ian From: ian@airs.com (Ian Lance Taylor) Newsgroups: comp.std.c Subject: Re: does "always append" apply to "a+" mode? Message-ID: <4985@airs.com> Date: 29 Jul 92 03:09:19 GMT References: <24992@dog.ee.lbl.gov> Sender: news@airs.com Lines: 17