Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site cci-bdc.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!cybvax0!cci-bdc!larry From: larry@cci-bdc.UUCP (Larry DeLuca) Newsgroups: net.lang.c Subject: Re: Hygiene of #define DIR \"/usr/lib/news Message-ID: <146@cci-bdc.UUCP> Date: Fri, 15-Feb-85 07:47:32 EST Article-I.D.: cci-bdc.146 Posted: Fri Feb 15 07:47:32 1985 Date-Received: Sat, 16-Feb-85 06:43:27 EST References: <8304@brl-tgr.ARPA> Organization: Computer Consoles, Inc., Cambridge, MA Lines: 20 In reference to the above style of defines: cute. but it's the same kind of cute that leads to headaches later. (also to headaches during when more than one person is working on a project and one goes through and "fixes" the other one's "mistakes"). it just sets off all sorts of alarm flags in my head. i prefer to build the string using strncat(3) and then give the built string to system(2). If you're feeling like doing it better, you can use sprintf(3) (which i do for more complicated examples than the one above) to construct the string). larry... -- uucp: ..mit-eddie!cybvax0!cci-bdc!larry arpa: henrik@mit-mc.ARPA This mind intentionally left blank.