So I have this macro and a bunch others defined in my header file
#define COL1WIDTH 16
Which I want to use to print something like this:
word 25 Dir1/FileB 129 Sat Jan 1 00:00:02 2011 12 1(x4), 2(x2), 3(x2), 4(x2), 5(x2)
How does the syntax to get the macro work? Tried a bunch and it keeps screwing up.
Tried this
printf("%COL1WIDTHs\t",index->terms[0].term);
Macros aren’t expanded inside strings. Here there’s a decent workaround — write
and
COL1WIDTHwill be used in place of the*.