Content-type: text/html
cc [ flag... ] file... -lpicltree [ library... ] #include <picltree.h>
int ptree_get_root(picl_nodehdl_t *nodeh);
The ptree_get_root() function copies the handle of the root node of the PICL tree into the location specified by nodeh.
Upon successful completion, 0 is returned. On failure, a non-negative integer is returned to indicate an error.
PICL_INVALIDARG Invalid argument
PICL_FAILURE General system failure
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Evolving |
MT-Level | MT-Safe |
libpicltree(3PICLTREE), ptree_create_node(3PICLTREE), attributes(5)