Mail Archives: djgpp/1994/06/21/12:01:57
> > 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 -