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