Query: blt_treereleasetoken
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Blt_TreeReleaseToken(3) BLT Library Procedures Blt_TreeReleaseToken(3) __________________________________________________________________________________________________________________________________________________NAMEBlt_TreeReleaseToken - Releases token associated with tree object.SYNOPSIS#include <bltTree.h> int Blt_TreeReleaseToken(token)ARGUMENTSBlt_Tree *token (in) Token of tree to be released. _________________________________________________________________DESCRIPTIONThis 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: token Token of the tree data object to be released. This token was initialized either by Tcl_TreeGetToken or Blt_TreeCreate earlier.RETURNSNothing.EXAMPLEThe 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 ", Blt_TreeName(token)); /* Tree will be destroyed when the token is released. */ Blt_TreeReleaseToken(token);KEYWORDStree, tokenBLT2.4 Blt_TreeReleaseToken(3)