home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!cs.utexas.edu!wupost!gumby!destroyer!ncar!sauvage!chris
- From: chris@chinook.atd.ucar.edu (Chris Webster)
- Subject: fopen & binary mode
- Message-ID: <1992Sep9.152325.9245@ncar.ucar.edu>
- Sender: news@ncar.ucar.edu (USENET Maintenance)
- Reply-To: chris@chinook.atd.ucar.edu
- Organization: Research Aviation Facility, NCAR, Boulder, CO
- Date: Wed, 9 Sep 1992 15:23:25 GMT
- Lines: 15
-
-
- When I used to program with Borland C on PC's, the fopen call
- had binary mode. This was accomplished by placing a 'b' after
- the mode (e.g. "r+b"). This prevented CR from being converted
- into CR/LF or something of the sort.
-
- My question is: Does this apply to most installations of the
- C library? Was it just a DOSism? Should I continue to use it
- so my code is more portable? The Sun compiler has not complained
- about me doing so.
-
- If this is not the appropriate news group please let me know of a
- better one. Thanx.
-
- --Chris
-