Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!mcnc!rti!dg-rtp!meissner From: meissner@dg-rtp.UUCP (Michael Meissner) Newsgroups: comp.lang.c Subject: Re: newlines in string constants Message-ID: <302@dg-rtp.UUCP> Date: Wed, 7-Oct-87 10:44:54 EDT Article-I.D.: dg-rtp.302 Posted: Wed Oct 7 10:44:54 1987 Date-Received: Sat, 10-Oct-87 09:44:31 EDT References: <2669@xanth.UUCP> Reply-To: meissner@nightmare.UUCP (Michael Meissner) Organization: Data General (Languages @ Research Triangle Park, NC.) Lines: 23 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? The current ANSI draft still says this is illegal. However, it does add a feature where adjacent strings are pasted together. For example, you could write: char *s = "This is\n" "legal."; -- Michael Meissner, Data General. Uucp: ...!mcnc!rti!xyzzy!meissner Arpa/Csnet: meissner@dg-rtp.DG.COM