www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/21/12:01:57

From: Eric Backus <ericb AT lsid DOT hp DOT com>
Subject: Re: O_TEXT/O_BINARY grief
To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Date: Tue, 21 Jun 94 8:37:50 PDT
Mailer: Elm [revision: 70.85]

> > 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.
> 
> We are getting rather off topic, but K&R 2nd edition, pages 157, 245 and 249
> each say that the white space characters are blank, tab, newline, carriage
> return, vertical tab and formfeed.

Yes, and ANSI C agrees.  Also, the ANSI C function isspace() returns
true for those same six characters.

But the C preprocessor must know about line end characters, so that it
knows when macro definitions and ifdefs end, and so that it can remove
backslash-newline combinations.
--
				Eric Backus
				ericb AT lsid DOT hp DOT com
				(206) 335-2495

- Raw text -


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