Method
GLibTreelookup_node
since: 2.68
Declaration [src]
GTreeNode*
g_tree_lookup_node (
GTree* tree,
gconstpointer key
)
Description [src]
Gets the tree node corresponding to the given key. Since a GTree
is
automatically balanced as key/value pairs are added, key lookup
is O(log n) (where n is the number of key/value pairs in the tree).
Available since: 2.68
Parameters
key
-
Type:
gconstpointer
The key to look up.
The argument can be NULL
.The data is owned by the caller of the method.
Return value
Type: GTreeNode
The tree node corresponding to
the key, or NULL
if the key was not found.
The returned data is owned by the instance. |
The return value can be NULL . |