| 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_TreeNodeId 3 BLT_VERSION BLT "BLT Library Procedures" |
| 23 |
.BS |
| 24 |
.SH NAME |
| 25 |
Blt_TreeNodeId \- Returns the node serial number. |
| 26 |
.SH SYNOPSIS |
| 27 |
.nf |
| 28 |
\fB#include <bltTree.h>\fR |
| 29 |
.sp |
| 30 |
unsigned int |
| 31 |
\fBBlt_TreeNodeId\fR(\fInode\fR) |
| 32 |
.fi |
| 33 |
.SH ARGUMENTS |
| 34 |
.AS Blt_TreeNode node |
| 35 |
.AP Blt_TreeNode node in |
| 36 |
Node whose ID is to be returned. |
| 37 |
.BE |
| 38 |
.SH DESCRIPTION |
| 39 |
This procedure returns the node serial number. The node serial number |
| 40 |
is useful for programs that export the tree data object to the Tcl |
| 41 |
programming level. Since node labels (and therefore pathnames) are |
| 42 |
not unique, the ID can be used to uniquely identify a node. |
| 43 |
.PP |
| 44 |
The arguments are as follows: |
| 45 |
.TP 1i |
| 46 |
\fInode\fR |
| 47 |
The node whose serial number is returned. The serial number of |
| 48 |
the root node for example is always 0. |
| 49 |
.SH RETURNS |
| 50 |
The serial number of the node. Nodes are given a unique serial number |
| 51 |
when they are created. You can use the ID to later retrieve the node |
| 52 |
using \fBBlt_TreeGetNode\fR. |
| 53 |
.SH EXAMPLE |
| 54 |
The following example prints the ID of a node. |
| 55 |
.CS |
| 56 |
printf("root ID is %s\\n", Blt_TreeNodeId(node)); |
| 57 |
.CE |
| 58 |
.SH KEYWORDS |
| 59 |
Tcl_TreeCreateNode, Tcl_TreeDeleteNode |