Blt_TreeExists(3) | BLT Library Procedures | Blt_TreeExists(3) |
Blt_TreeExists - Indicates if a tree exists.
#include <bltTree.h> int Blt_TreeExists(interp, name)
This procedure determines if a C-based tree data object exists by a given name. The arguments are as follows:
A boolean result is returned. If the tree exists 1 is returned, 0 otherwise.
The following example checks if a tree "myTree" exists.
if (!Blt_TreeExists(interp, "myTree")) {
fprintf(stderr, "can't find tree \"myTree\\n"); }
tree, token Tcl_TreeCreate, Tcl_TreeGetToken, Tcl_TreeReleaseToken
2.5 | BLT |