#include <bltTree.h> Blt_TreeNode Blt_TreeGetNode(tree, number)
Blt_Tree tree (in)
Tree containing the requested node.
unsigned int number (in)
Serial number of the requested node.
The arguments are as follows:
unsigned int number;
Blt_TreeNode node;
Blt_TreeToken token;
node = Blt_TreeGetNode(token, number);
if (node == NULL) {
printf("no node with ID %d exists\n", number);
} else {
printf("node found: label is %s\n", Blt_TreeNodeLabel(node)
);
}
Keywords
Tcl_TreeCreateNode, Tcl_TreeDeleteNode