Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!sri-unix!ctnews!pyramid!hplabs!motsj1!mcdchg!clyde!feg From: feg@clyde.ATT.COM (Forrest Gehrke) Newsgroups: comp.lang.c Subject: Re: newlines in string constants Message-ID: <15262@clyde.ATT.COM> Date: Wed, 14-Oct-87 12:24:40 EDT Article-I.D.: clyde.15262 Posted: Wed Oct 14 12:24:40 1987 Date-Received: Sat, 17-Oct-87 03:07:32 EDT References: <2669@xanth.UUCP> Organization: AT&T Bell Labs, Whippany, NJ Lines: 20 Summary: How many spaces?...... In article <2669@xanth.UUCP>, kyle@xanth.UUCP (Kyle Jones) writes: > I would like to be able to have multi-line string constants without > having to put \n\ at the end of each line. For example > > char *s = "This is\n\ > legal."; > > whereas > > char *s = "This is > not legal."; > > I would like to see the second form become legal. What does the > current ANSI draft have to say about this? > How is the compiler going to divine the number (if any) of spaces you will want? The intervening spaces might have been intentional. Forrest Gehrke