[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470
From: |
Dave Dodge |
Subject: |
Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470 |
Date: |
Wed, 5 Sep 2007 23:31:20 -0400 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Wed, Sep 05, 2007 at 08:46:30PM -0500, Rob Landley wrote:
> On Wednesday 05 September 2007 7:14:30 pm Simon 'corecode' Schubert wrote:
> > Like the majority of internet protocols. Actually, if you fopen()
> > a text file with mode "rt" it does convert \r\n to \n.
>
> On Linux? That's not in the man page...
No, the "t" is a Windows thing. In Standard C:
"r" open for reading in text mode
"rb" open for reading in binary mode
UNIX/Linux accepts both forms, but of course there is no distinction
between text and binary mode so the "b" is just ignored.
On Windows:
"rt" open for reading in text mode
"rb" open for reading in binary mode
"r" whether you get text or binary mode depends on the current
setting of the global _fmode. Note that the default value for
_fmode depends on how the application was linked.
-Dave Dodge
- [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Joshua Phillips, 2007/09/05
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Rob Landley, 2007/09/05
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Simon 'corecode' Schubert, 2007/09/05
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Rob Landley, 2007/09/05
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Simon 'corecode' Schubert, 2007/09/05
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Rob Landley, 2007/09/05
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470,
Dave Dodge <=
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Rob Landley, 2007/09/06
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Captain Fantastic, 2007/09/06
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Rob Landley, 2007/09/06
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Simon 'corecode' Schubert, 2007/09/06
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Rob Landley, 2007/09/06
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Joshua Phillips, 2007/09/06
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Gregg Reynolds, 2007/09/06
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Rob Landley, 2007/09/06
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Basile STARYNKEVITCH, 2007/09/06
- Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470, Gregg Reynolds, 2007/09/06