Debian Codegraph @

man/Blt_TreeExists.man3

raw
1 '\"
2 '\" Copyright 1991-1998 by Bell Labs Innovations for Lucent Technologies.
3 '\"
4 '\" Permission to use, copy, modify, and distribute this software and its
5 '\" documentation for any purpose and without fee is hereby granted, provided
6 '\" that the above copyright notice appear in all copies and that both that the
7 '\" copyright notice and warranty disclaimer appear in supporting documentation,
8 '\" and that the names of Lucent Technologies any of their entities not be used
9 '\" in advertising or publicity pertaining to distribution of the software
10 '\" without specific, written prior permission.
11 '\"
12 '\" Lucent Technologies disclaims all warranties with regard to this software,
13 '\" including all implied warranties of merchantability and fitness. In no event
14 '\" shall Lucent Technologies be liable for any special, indirect or
15 '\" consequential damages or any damages whatsoever resulting from loss of use,
16 '\" data or profits, whether in an action of contract, negligence or other
17 '\" tortuous action, arising out of or in connection with the use or performance
18 '\" of this software.
19 '\"
20 '\"
21 .so man.macros
22 .TH Blt_TreeExists 3 BLT_VERSION BLT "BLT Library Procedures"
23 .BS
24 .SH NAME
25 Blt_TreeExists \- Indicates if a tree exists.
26 .SH SYNOPSIS
27 .nf
28 \fB#include <bltTree.h>\fR
29 .sp
30 int
31 \fBBlt_TreeExists\fR(\fIinterp\fR, \fIname\fR)
32 .fi
33 .SH ARGUMENTS
34 .AS Tcl_Interp *interp
35 .AP Tcl_Interp *interp in
36 Interpreter to determine current namespace context.
37 .AP "const char" *name in
38 Name of an existing tree data object. Can be qualified by a namespace.
39 .BE
40 .SH DESCRIPTION
41 .PP
42 This procedure determines if a C-based tree data object exists by
43 a given name. The arguments are as follows:
44 .TP 1i
45 interp
46 Used the determine the current namespace context.
47 .TP 1i
48 name
49 Name of an existing tree data object. \fIName\fR can be qualified by
50 a namespace such as \fBfred::myTree\fR. If no namespace qualifier
51 is used, the current namespace is searched, then the global namespace.
52 .PP
53 .SH RETURNS
54 A boolean result is returned. If the tree exists 1 is returned,
55 0 otherwise.
56 .SH EXAMPLE
57 The following example checks if a tree "myTree" exists.
58 .CS
59 .ft CW
60 if (!Blt_TreeExists(interp, "myTree")) {
61 fprintf(stderr, "can't find tree \\"myTree\\\\n");
62 }
63 .ft R
64 .CE
65 .SH KEYWORDS
66 tree, token
67 Tcl_TreeCreate, Tcl_TreeGetToken, Tcl_TreeReleaseToken