using macros for inserting tabs ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • viveklinux@gmail.com

    using macros for inserting tabs ?

    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

  • Ian Collins

    #2
    Re: using macros for inserting tabs ?

    viveklinux@gmai l.com wrote:[color=blue]
    > 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.
    >[/color]
    Why ask twice?
    --
    Ian Collins.

    Comment

    Working...