Debian Codegraph @

html/Blt_TreeExists.html

raw symbols SCIP
1
2 <!-- manual page source format generated by PolyglotMan v3.0.9, -->
3 <!-- available via anonymous ftp from ftp.cs.berkeley.edu:/ucb/people/phelps/tcltk/rman.tar.Z -->
4
5 <HTML>
6 <HEAD>
7 <TITLE>Blt_TreeExists(3) manual page</TITLE>
8 </HEAD>
9 <BODY bgcolor=white>
10 <A HREF="#toc">Table of Contents</A><P>
11
12 <H2><A NAME="sect0" HREF="#toc0">Name</A></H2>
13 Blt_TreeExists - Indicates if a tree
14 exists.
15 <H2><A NAME="sect1" HREF="#toc1">Synopsis</A></H2>
16 <BR>
17 <PRE>#include &lt;bltTree.h&gt;
18
19 int
20 Blt_TreeExists(interp, name)
21 </PRE>
22 <H2><A NAME="sect2" HREF="#toc2">Arguments</A></H2>
23 <P>
24 Tcl_Interp <I>*interp</I><tt> </tt>&nbsp;<tt> </tt>&nbsp;(in)<BR>
25 <tt> </tt>&nbsp;<tt> </tt>&nbsp;Interpreter to determine current namespace context. <P>
26 const char <I>*name</I><tt> </tt>&nbsp;<tt> </tt>&nbsp;(in)<BR>
27 <tt> </tt>&nbsp;<tt> </tt>&nbsp;Name of an existing tree data object. Can be qualified by a namespace.
28 <H2><A NAME="sect3" HREF="#toc3">Description</A></H2>
29 <P>
30 This
31 procedure determines if a C-based tree data object exists by a given name.
32 The arguments are as follows:
33 <DL>
34
35 <DT>interp </DT>
36 <DD>Used the determine the current namespace
37 context. </DD>
38
39 <DT>name </DT>
40 <DD>Name of an existing tree data object. <I>Name</I> can be qualified
41 by a namespace such as fred::myTree. If no namespace qualifier is used,
42 the current namespace is searched, then the global namespace. </DD>
43 </DL>
44 <P>
45
46 <H2><A NAME="sect4" HREF="#toc4">Returns</A></H2>
47 A boolean
48 result is returned. If the tree exists 1 is returned, 0 otherwise.
49 <H2><A NAME="sect5" HREF="#toc5">Example</A></H2>
50 The
51 following example checks if a tree "myTree" exists. <BR>
52 <CODE>if (!Blt_TreeExists(interp, "myTree")) {<BR>
53 fprintf(stderr, "can't find tree \"myTree\\n");<BR>
54 }<BR>
55
56 <H2><A NAME="sect6" HREF="#toc6"></CODE>Keywords</A></H2>
57 tree, token Tcl_TreeCreate, Tcl_TreeGetToken, Tcl_TreeReleaseToken
58 <P>
59
60 <HR><P>
61 <A NAME="toc"><B>Table of Contents</B></A><P>
62 <UL>
63 <LI><A NAME="toc0" HREF="#sect0">Name</A></LI>
64 <LI><A NAME="toc1" HREF="#sect1">Synopsis</A></LI>
65 <LI><A NAME="toc2" HREF="#sect2">Arguments</A></LI>
66 <LI><A NAME="toc3" HREF="#sect3">Description</A></LI>
67 <LI><A NAME="toc4" HREF="#sect4">Returns</A></LI>
68 <LI><A NAME="toc5" HREF="#sect5">Example</A></LI>
69 <LI><A NAME="toc6" HREF="#sect6">Keywords</A></LI>
70 </UL>
71 </BODY></HTML>