Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!im4u!swrinde!petro!jrb From: jrb@petro.UUCP Newsgroups: comp.lang.c Subject: Unstylish #defines ?? Message-ID: <325@petro.UUCP> Date: Tue, 22-Sep-87 15:41:43 EDT Article-I.D.: petro.325 Posted: Tue Sep 22 15:41:43 1987 Date-Received: Sat, 26-Sep-87 09:48:14 EDT Sender: news@petro.UUCP Distribution: na Organization: G.M. Andreen & Associates, Inc. San Antonio, Texas Lines: 24 Keywords: quotes, files Summary: It works, but is it STYLISH? I've been toying with ways to make the `HOME' directory for a pile of software a little more portable and the following sure beats the method where you effectively get -> sprintf(buf,"%s/afile","/usr/me"); fopen(buf,"r"); <- but it sure does LOOK wierd! ----- cut here ----- #define FOO "/usr/me stream = fopen(FOO/afile","r"); ----- ereh tuc ----- It works, mostly because file names are "divided" as they are, but is it stylish?! Any takers? Peter? Thanks! Jon ----- Peter and the Wolf? No! -- Peter da Wolf `-_-' Gimme a break! -- 'U` -- Jon Boede ...!{gatech,ihnp4,akgua}!petro!jrb 512/599-1847 2555 N.E. Loop 410, #1403, 78217 "People who are incapable of making decisions are the ones who hit those barrels at freeway exits."