Quoting C names

Brad Taylor brad at sun.uucp
Wed Nov 14 15:31:10 AEST 1984

     Is there any easy way to quote a C name?
Here is an example where it might be used:

#define FUNCNAME foo

    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.



More information about the Comp.lang.c mailing list