Debian Codegraph @

man/Blt_TreeReleaseToken.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_TreeReleaseToken 3 BLT_VERSION BLT "BLT Library Procedures"
23 .BS
24 .SH NAME
25 Blt_TreeReleaseToken \- Releases token associated with tree object.
26 .SH SYNOPSIS
27 .nf
28 \fB#include <bltTree.h>\fR
29 .sp
30 int
31 \fBBlt_TreeReleaseToken\fR(\fItoken\fR)
32 .fi
33 .SH ARGUMENTS
34 .AS Blt_Tree token
35 .AP Blt_Tree *token in
36 Token of tree to be released.
37 .BE
38 .SH DESCRIPTION
39 .PP
40 This procedure releases the token associated with a C-based tree data
41 object. When all outstanding tokens for a tree data object have been
42 released, then the data object itself will be freed. The arguments
43 are as follows:
44 .TP 1i
45 token
46 Token of the tree data object to be released. This token was
47 initialized either by \fBTcl_TreeGetToken\fI or \fIBlt_TreeCreate\fR
48 earlier.
49 .SH RETURNS
50 Nothing.
51 .SH EXAMPLE
52 The following example creates and then releases a new token.
53 .CS
54 Blt_Tree token;
55
56 if (Blt_TreeCreate(interp, "myTree", &token) != TCL_OK) {
57 return TCL_ERROR;
58 }
59 printf("tree is %s\\n", Blt_TreeName(token));
60
61 /* Tree will be destroyed when the token is released. */
62 Blt_TreeReleaseToken(token);
63 .CE
64 .SH KEYWORDS
65 tree, token