www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/21/00:21:07

Date: Tue, 21 Jun 94 11:49:43 JST
From: Stephen Turnbull <turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp>
To: jes AT mbio DOT med DOT upenn DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: O_TEXT/O_BINARY grief

   From: jes AT mbio DOT med DOT upenn DOT edu (Joe Smith)

   > The DEC Alpha C compiler objects to every CR in a CR/LF-delimited file.

   Gee, and I thought whitespace in C programs wasn't significant, ever
   since K&R.  Shows how confused *I* can get!  ;-)

   <Joe

Yep, you are.  I don't know about ANSI, but the only reference to
whitespace I found in a 15 second look at the K&R index was to the
whitespace counting program, where '\r' is not considered white space.

I seem to recall that in ANSI C there must be a newline delimiter,
in ASCII it's conventionally '\010', and a space character, in ASCII
'\020', but doesn't say anything about other whitespace characters,
which are implmentation-dependent.

    --Steve  "just a couple yen worth" Turnbull

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019