Home | History | Annotate | Download | only in stdlib

Lines Matching refs:root

28 trecurse(const node_t *root,	/* Root of the tree to be walked */
31 _DIAGASSERT(root != NULL);
34 if (root->llink == NULL && root->rlink == NULL)
35 (*action)(root, leaf, level);
37 (*action)(root, preorder, level);
38 if (root->llink != NULL)
39 trecurse(root->llink, action, level + 1);
40 (*action)(root, postorder, level);
41 if (root->rlink != NULL)
42 trecurse(root->rlink, action, level + 1);
43 (*action)(root, endorder, level);
49 twalk(const void *vroot, cmp_fn_t action) /* Root of the tree to be walked */