home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / std / c / 2375 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.1 KB

  1. Path: sparky!uunet!airs!ian
  2. From: ian@airs.com (Ian Lance Taylor)
  3. Newsgroups: comp.std.c
  4. Subject: Re: does "always append" apply to "a+" mode?
  5. Message-ID: <4985@airs.com>
  6. Date: 29 Jul 92 03:09:19 GMT
  7. References: <24992@dog.ee.lbl.gov>
  8. Sender: news@airs.com
  9. Lines: 17
  10.  
  11. torek@horse.ee.lbl.gov (Chris Torek) writes:
  12.  
  13. >To me, it seems clear that a stream opened in "a+" mode can be read at
  14. >any arbitrary position, but all writes to that stream are appended to
  15. >the underlying file.  There is some dissent, however, on the grounds
  16. >that the second paragraph `overrides' the first, i.e., that the first
  17. >paragraph does not apply because of the '+' character.
  18.  
  19. Table 4.1 in the Rationale clearly agrees with you (and so do I).
  20. Although the Rationale is not part of the standard, it is presumably a
  21. reliable guide in a case of ambiguity requiring an interpretation
  22. ruling.
  23. -- 
  24. Ian Taylor | ian@airs.com | First to identify quote wins free e-mail message:
  25. ``It takes a man months and months to reconcile himself to a new hat.  And
  26.   just when you're preparing to send it to the jumble sale, he says, `That's
  27.   rather a nice hat you've got on, where did you get it?' ''
  28.