Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!caen!sol.ctr.columbia.edu!emory!wa4mei!holos0!afc-tci!joubert From: joubert@afc-tci.UUCP (Joubert Berger) Newsgroups: comp.lang.c Subject: help with a macro Message-ID: <595@afc-tci.UUCP> Date: 9 May 91 15:32:51 GMT Organization: Advance Financial Corporation / Teldate Computer Industries, Inc. Lines: 17 I want to define a macro, lets call it UNDERLINE that would take a string as a parameter. This macro should add some characters in front and behind the string. Is this possible? I want to be able to say: fprintf(f, "%s\n", UNDERLINE("test")); and it replaces the the "test" with the newly created string. Am I asking to much of the preprocessor? Joubert -- Joubert Berger | Email: Teldata Computer Industries, Inc.| joubert@afc-tci.uucp Atlanta, Georgia (404) 256-2166 | {rutgers,ogicse,gatech}!emory!afc-tci!joubert