Groups | Search | Server Info | Login | Register


Groups > comp.lang.c.moderated > #506

String: "anti" string oprator

From paragk <parag.kanade@gmail.com>
Newsgroups comp.lang.c.moderated
Subject String: "anti" string oprator
Date 2011-02-01 16:28 -0600
Organization http://groups.google.com
Message-ID <clcm-20110201-0006@plethora.net> (permalink)

Show all headers | View raw


Hi,

The # operator converts a parameter to a string. Is there a way to
"anti" string?

For e.g.

char *p="abc";
char *q="xyz";

#define declare_fun(x) void <anti string>x( void)

main()
{

  declare_func(*p);
  declare_func(*q);
}

I would like to get the following after the preprocessor is run:

main()
{
  void abc(void);
  void xyz(void);
}

Is there a way to achieve this?

Thanks,
Parag
-- 
comp.lang.c.moderated - moderation address: clcm@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line.  Sorry.

Back to comp.lang.c.moderated | Previous | Next | Find similar


Thread

String: "anti" string oprator paragk <parag.kanade@gmail.com> - 2011-02-01 16:28 -0600

csiph-web