[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [MiNT] Here documents and CRLF



> From: owner-mint@fishpool.com [mailto:owner-mint@fishpool.com]On Behalf
> Of Kristoffer Lawson
> Sent: Thursday, June 17, 1999 8:56 PM
> Cc: MiNT mailing list
> Subject: Re: [MiNT] Here documents and CRLF
>
>
> On Wed, 16 Jun 1999, Guido Flohr wrote:
>
> > > Actually, you *have* to pass "b" if it is meant to be binary
> -- everything
> > > else is not proper ANSI-C.
> >
> > Yes, but on POSIX systems the "b" is ignored (because there is no
> > difference between text and binary streams).  Does ANSI-C really demand
> > that the "b" is recognized?  My understanding was that it is
> more portable
> > to omit the "b" (and rather let M$-DOGgy systems fail).
>
> No, ANSI does not demabr that it is recognized in any particular way
> (ie. it can be ignored), but as mentioned if you want your code to be
> portable to non-UNIX systems, you should stick the 'b' in when reading

You *must*.

> binary codes.
>
> Of course MiNT should probably be trying to follow POSIX guidelines as far
> as possible, but still...