This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: gcc for WinNT
- To: gnu-win32 at cygnus dot com
- Subject: Re: gcc for WinNT
- From: Michael Meissner <meissner at cygnus dot com>
- Date: 13 Mar 1997 11:33:49 -0500
- Distribution: cygnus
- Newsgroups: cygnus.gnu-win32
- Organization: Cygnus Solutions, Massachusetts USA Office
- References: <199703072049.PAA27466.cygnus.gnu-win32@cinna.ultra.net>
- Xref: cygnus.com cygnus.gnu-win32:4679
jdennis@ultranet.com ("John R. Dennis") writes:
> There are many ways to set binary vs. text mode on a file stream.
>
> in fopen add either the b (binary) or the t (text) character in
> the mode string, e.g. fopen(filename "rb") to open a file for binary
> reading.
Umm, if you want your code to be portable, don't use the t in the mode string.
Ie, use "r" for read-only text files, and "rb" for read-only binary files.
--
Michael Meissner, Cygnus Solutions (East Coast)
4th floor, 955 Massachusetts Avenue, Cambridge, MA 02139, USA
meissner@cygnus.com, 617-354-5416 (office), 617-354-7161 (fax)
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".