HP C/iX Library Reference Manual (30026-90004)

376 Chapter5
HP C/iX Library Function Descriptions
twalk
a node before any of its children, after its left child and before its right, and after both its
children. The alternate nomenclature uses preorder, inorder, and postorder to refer to the
same visits, which results in some confusion over the meaning of postorder.
The third argument is the level of the node in the tree, with the root being level zero.
NOTE
The twalk function and the header file <search.h> are not part of ANSI C.
Using them makes your program less portable.
Examples
Refer to the example located in the tsearch() function description.
See Also
tfind(), tsearch(), tdelete()