int ForEachNode( POINTER user, PTRSZVAL key ) { // return not 1 to dump to log the internal tree structure return 0; // probably did own logging here, so don't log tree internal } PTREEROOT tree; void f( void ) { DumpTree( tree, ForEachNode ); }