help with a macro

Joubert Berger joubert at afc-tci.UUCP
Fri May 10 01:32:51 AEST 1991


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 at afc-tci.uucp    
Atlanta, Georgia  (404) 256-2166 | {rutgers,ogicse,gatech}!emory!afc-tci!joubert



More information about the Comp.lang.c mailing list