Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/17/84; site elsie.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!umcp-cs!cvl!elsie!ado
From: ado@elsie.UUCP (Arthur David Olson)
Newsgroups: net.lang.c
Subject: Hygiene of #define DIR "/usr/lib/news
Message-ID: <5053@elsie.UUCP>
Date: Tue, 12-Feb-85 15:01:31 EST
Article-I.D.: elsie.5053
Posted: Tue Feb 12 15:01:31 1985
Date-Received: Thu, 14-Feb-85 01:48:44 EST
Organization: NIH-LEC, Bethesda, MD
Lines: 18

The 2.11 vnews source posted lately had a thought-provoking way of doing
string catenation.  It had defines such as

	#define DIR "/usr/lib/news

and used these defines in lines such as

	system(DIR/batch");

which, after being run through the 4.1bsd C preprocessor, yields

	system("/usr/lib/news/batch");

I'm wondering what folks think of the hygiene and portability of this
technique for accomplishing string catenation.  Let me know.
--
	UUCP: ..decvax!seismo!elsie!ado    ARPA: elsie!ado@seismo.ARPA
	DEC, VAX and Elsie are Digital Equipment and Borden trademarks