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

Re: [MiNT] Here documents and CRLF



"Julian Reschke" <reschke@muenster.de> writes:

|> This is certainly wrong. ANSI-C is a proper subset of POSIX, and ANSI-C says
|> you *must* use "b" to get a binary string.

The C standard never uses the term "must".  It says "shall, undefined if
not".  POSIX gives it a defined meaning, which is explicitly allowed by
ANSI.  This is what makes POSIX a proper superset of ANSI.

Footnote from C9x:

       209An  implementation  need  not  distinguish  between  text
          streams and binary streams.  In such  an  implementation,
          there need be no new-line characters in a text stream nor
          any limit to the length of a line.

Actually, the effect of the mappings between external structures and C
streams is mostly implementation defined.

Andreas.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org