i want to ask about the following macro:
#define PRINTINT(x)fprintf (stderr, "The value of " #x \ in file" _FILE_ \
at line %d is %d\n",
my question is how to call the macro.
could you please give me an example of _DATE_,_TIME_ and _STDC_ macros?.
PS: thank you VERY MUCH for your help!
Strings written joined to each other are made one string during compile
time. Thus if you call
it will be converted to
fpprintf(stderr,"The value of " "variable" "in file" "myfile.c" "at line%d
The #x converts the macro argument to string.
[ back to toc ]