Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!sun!brad From: brad@sun.uucp (Brad Taylor) Newsgroups: net.lang.c Subject: Quoting C names Message-ID: <1793@sun.uucp> Date: Wed, 14-Nov-84 00:31:10 EST Article-I.D.: sun.1793 Posted: Wed Nov 14 00:31:10 1984 Date-Received: Thu, 15-Nov-84 03:14:48 EST Distribution: net Organization: Sun Microsystems, Inc. Lines: 19 Is there any easy way to quote a C name? Here is an example where it might be used: #define FUNCNAME foo void FUNCNAME() { static char *myself = QUOTE(FUNCNAME); printf("(I'm in %s)",myself); } Note that only FUNCNAME need be changed in order to change the name of the function. -brad