#include <bltTree.h> int Blt_TreeExists(interp, name)
Tcl_Interp *interp (in)
Interpreter to determine current namespace context.
const char *name (in)
Name of an existing tree data object. Can be qualified by a namespace.
This procedure determines if a C-based tree data object exists by a given name. The arguments are as follows:
if (!Blt_TreeExists(interp, "myTree")) {
fprintf(stderr, "can't find tree \"myTree\\n");
}
Keywords
tree, token Tcl_TreeCreate, Tcl_TreeGetToken, Tcl_TreeReleaseToken