Is there a way to evaluate an expression before stringification in c?
example:
#define stringify(x) #x ... const char * thestring = stringify( 10 *
You need to interpret the string. C doesn't do that by itself, look up a library that'll do it for you.
http://expreval.sourceforge.net/ http://www.codeproject.com/KB/library/expreval.aspx
There are others, just search google.