Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!tikal!uccba!finegan From: finegan@uccba.UUCP (Mike Finegan) Newsgroups: comp.lang.c Subject: Re: newlines in string constants Message-ID: <1260@uccba.UUCP> Date: Tue, 20-Oct-87 20:53:38 EDT Article-I.D.: uccba.1260 Posted: Tue Oct 20 20:53:38 1987 Date-Received: Fri, 23-Oct-87 01:43:43 EDT References: <2669@xanth.UUCP> <15262@clyde.ATT.COM> <2810@xanth.UUCP> Organization: Univ of Cincinnati, College of Business Admin. Lines: 16 Summary: but how do you get rid of \n's in strings ? Does anyone have a macro, or other way, to ignore a newline while in a string (particularly an argument to [s,f]printf ? Something like : #define swallow(!A!) ~ ~ much code ~ ~ printf("I only want this swallow(! and not this !) to be in the string"); Any ideas short of my own pre-processor ? If it's insultingly simple, great! Mike Finegan ...!(hal,decuec,mit-eddie,pyramid)!uccba[!ucece1]!finegan