Blt_TreeReleaseToken
Releases token associated with tree object.
- Provided by: blt-dev (Version: 2.5.3+dfsg-4)
- Source: blt
- Report a bug
Releases token associated with tree object.
#include <bltTree.h> int Blt_TreeReleaseToken(token)
This procedure releases the token associated with a C-based tree data object. When all outstanding tokens for a tree data object have been released, then the data object itself will be freed. The arguments are as follows:
Nothing.
The following example creates and then releases a new token.
Blt_Tree token;
if (Blt_TreeCreate(interp, "myTree", &token) != TCL_OK) {
return TCL_ERROR;
}
printf("tree is %s\n", Blt_TreeName(token));
/* Tree will be destroyed when the token is released. */
Blt_TreeReleaseToken(token);
tree, token