home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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?' ''
-