Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!ucbcad!ucbvax!sdcsvax!ucsdhub!jack!man!nusdhub!rwhite From: rwhite@nusdhub.UUCP (Robert C. White Jr.) Newsgroups: comp.lang.c Subject: Re: newlines in string constants Message-ID: <116@nusdhub.UUCP> Date: Thu, 8-Oct-87 18:20:07 EDT Article-I.D.: nusdhub.116 Posted: Thu Oct 8 18:20:07 1987 Date-Received: Sun, 11-Oct-87 12:00:48 EDT References: <2669@xanth.UUCP> <6527@brl-smoke.ARPA> Organization: National University, San Diego Lines: 14 Summary: Try This... In article <6527@brl-smoke.ARPA>, gwyn@brl-smoke.ARPA (Doug Gwyn ) writes: > In article <2669@xanth.UUCP> kyle@xanth.UUCP (Kyle Jones) writes: > >char *s = "This is\n\ > >legal."; > > char *s = "This is\n" > "legal too."; It is a much more effective [if the strings are short] to simply write: char *s = "This is\nQuite legal.\nIf a little ugly." Robert ("Who Asked You Anyway?") White.