home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / c / 13442 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  1.2 KB

  1. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
  2. From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: fopen & binary mode
  5. Message-ID: <1992Sep10.072802.15508@klaava.Helsinki.FI>
  6. Date: 10 Sep 92 07:28:02 GMT
  7. References: <1992Sep9.152325.9245@ncar.ucar.edu> <behrenss.716057963@hphalle6>
  8. Organization: University of Helsinki
  9. Lines: 17
  10.  
  11. behrenss@Informatik.TU-Muenchen.DE (Soenke Behrens) writes:
  12. >As to your question: Binary mode is standard ISO, it is supported by every
  13. >stdio library.
  14.  
  15. Not every stdio library.  All standard conforming libraries, and most of
  16. the non-standard, but there are one or two older libraries which don't
  17. accept a `b' in the mode argument to fopen.  I remember a particular
  18. machine running Ultrix 2.0-1 (hey, I did say old, didn't I?), which
  19. choked on fopen(..., "rb").  Took me a while to understand why the
  20. program couldn't read a file.  (I have some other fond memories of that
  21. machine: it's the machine where I first made the mistake of endless
  22. forking, and also the only machine that seems to have a system call for
  23. crashing the system, although why they called it mknod I don't know.  I
  24. was devastated when I couldn't use the system any more.)
  25.  
  26. --
  27. Lars.Wirzenius@helsinki.fi
  28.