V
viveklinux
Hi ,
writing a small application in C which has to create an XML document by
reading a binary format file. Trying to get the indentation right by
using a depth global variable which will insert appropriate number of
tab spaces depending up on the depth.
Is there any way that this can be done using a macro.
So , something like
#define INSERTTAB (x) /* not sure what will come here */
INSERTTAB (depth)
thanks in advance,
vivekian
writing a small application in C which has to create an XML document by
reading a binary format file. Trying to get the indentation right by
using a depth global variable which will insert appropriate number of
tab spaces depending up on the depth.
Is there any way that this can be done using a macro.
So , something like
#define INSERTTAB (x) /* not sure what will come here */
INSERTTAB (depth)
thanks in advance,
vivekian