home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!secapl!Cookie!frank
- From: frank@Cookie.secapl.com (Frank Adams)
- Subject: Re: Sizeof('\n')?
- Message-ID: <1992Nov05.173651.129559@Cookie.secapl.com>
- Date: Thu, 05 Nov 1992 17:36:51 GMT
- References: <1992Oct23.011501.8087@klaava.Helsinki.FI> <1992Oct28.220506.66033@Cookie.secapl.com> <1992Oct30.110753.5055@klaava.Helsinki.FI>
- Organization: Security APL, Inc.
- Lines: 18
-
- In article <1992Oct30.110753.5055@klaava.Helsinki.FI> wirzeniu@klaava.Helsinki.FI (Lars Wirzenius) writes:
- >frank@Cookie.secapl.com (Frank Adams) writes:
- >>There is one case where changing the mode may be necessary: if you want to
- >>read stdio in binary mode. I have written utility functions which do this
- >>(depending on what other arguments are present).
- >
- >I, too, used to struggle with reading and writing binary stdin/stdout
- >but I gave up in disgust in the end, since [...] I couldn't e.g. force
- >stdin/stdout to binary mode all the time, and when I could it depended
- >on the input, so I had to read potentially a lot from stdin before I
- >could make a decision, and buffer it so that I could re-process it
- >appropriately.
- >
- >(Well, actually I solved my problem by switching operating systems. I
- >was trying to write [...] for MS-DOS [...])
-
- I wrote the above-mentioned functions for MS-DOS using Borland's products
- (Turbo C/Borland C++), and had no such problems.
-