IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15270


Ignore:
Timestamp:
Oct 9, 2007, 3:28:23 PM (19 years ago)
Author:
jhoblitt
Message:

add pxTreePrint()

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxtree.c

    r15221 r15270  
    9494    }
    9595    psFree(iter);
     96}
     97
     98
     99static bool printNodes(void *arg, pxNode *node)
     100{
     101    pxNodePrint((FILE *)arg, node);
     102    fprintf((FILE *)arg, "\n\n");
     103
     104    return true;
     105}
     106
     107
     108void pxTreePrint(FILE *stream, pxNode *root)
     109{
     110    pxTreeCrawl(root, printNodes, (void *)stream);
    96111}
    97112
  • trunk/ippTools/src/pxtree.h

    r15221 r15270  
    4444pxNode *pxNodeAddData(pxNode *node, psPtr data);
    4545
     46void pxTreePrint(FILE *stream, pxNode *root);
     47
    4648void pxNodePrint(
    4749    FILE *stream,
Note: See TracChangeset for help on using the changeset viewer.