logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Blt_TreeExists - Indicates if a tree exists.

Arguments

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. _________________________________________________________________

Description

This procedure determines if a C-based tree data object exists by a given name. The arguments are as follows: interp Used the determine the current namespace context. name Name of an existing tree data object. Name can be qualified by a namespace such as fred::myTree. If no namespace qualifier is used, the current namespace is searched, then the global namespace.

Example

The following example checks if a tree "myTree" exists. if (!Blt_TreeExists(interp, "myTree")) { fprintf(stderr, "can't find tree \"myTree\\n"); }

Keywords

tree, token Tcl_TreeCreate, Tcl_TreeGetToken, Tcl_TreeReleaseToken BLT 2.5 Blt_TreeExists(3)

Name

Blt_TreeExists - Indicates if a tree exists.

Returns

A boolean result is returned. If the tree exists 1 is returned, 0 otherwise.

Synopsis

#include<bltTree.h> int Blt_TreeExists(interp, name)

See Also