| 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_TreeName 3 BLT_VERSION BLT "BLT Library Procedures" |
| 23 |
.BS |
| 24 |
.SH NAME |
| 25 |
Blt_TreeName \- Returns the name of the tree data object. |
| 26 |
.SH SYNOPSIS |
| 27 |
.nf |
| 28 |
\fB#include <bltTree.h>\fR |
| 29 |
.sp |
| 30 |
char * |
| 31 |
\fBBlt_TreeName\fR(\fItree\fR) |
| 32 |
.fi |
| 33 |
.SH ARGUMENTS |
| 34 |
.AS Blt_Tree tree |
| 35 |
.AP Blt_Tree tree in |
| 36 |
Token for the tree object. |
| 37 |
.BE |
| 38 |
.SH DESCRIPTION |
| 39 |
.PP |
| 40 |
This procedure returns the name of the C-based tree data object. |
| 41 |
The arguments are as follows: |
| 42 |
.TP 1i |
| 43 |
\fItree\fR |
| 44 |
Token for the tree object. The token must have been previously |
| 45 |
obtained via \fBBlt_TreeGetToken\fR or \fBBlt_TreeCreate\fR. |
| 46 |
.SH RETURNS |
| 47 |
The name of the tree object is returned. The name will be fully |
| 48 |
qualified with a namespace context. |
| 49 |
.SH EXAMPLE |
| 50 |
The following example prints the name of the new tree. |
| 51 |
.CS |
| 52 |
Blt_Tree token; |
| 53 |
|
| 54 |
if (Blt_TreeCreate(interp, NULL, &token) != TCL_OK) { |
| 55 |
return TCL_ERROR; |
| 56 |
} |
| 57 |
printf("tree is %s\\n", Blt_TreeName(token)); |
| 58 |
.CE |
| 59 |
.SH KEYWORDS |
| 60 |
Tcl_TreeGetToken, Tcl_TreeExists, Tcl_TreeReleaseToken |