MLY.G.SHADES%MIT-OZ@MIT-MC.ARPA (02/13/85)
re arthur olson's <ad0 at elsie.uucp> msg about open ended string macros. this is non-portable and in direct contravention of the definition of what the pre-processor is supposed to do. the pre-processor is supposed to work with tokens only. half of a string is not a full token. this should generate an error message not concatenate two half strings. shades%mit-oz@mit-mc.arpa
larry@cci-bdc.UUCP (Larry DeLuca) (02/15/85)
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.