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

374 Chapter5
HP C/iX Library Function Descriptions
tsearch
return strcmp(node1->string, node2->string);
}
/* This function prints out a node, the first time twalk encounters it. */
void
print_node(node, order, level)
struct node **node;
VISIT order;
int level;
{
if (order == preorder||order == leaf) {
(void)printf("string = %20s, length = %d\n",
(*node)->string, (*node)->length);
}
}
See Also
tfind(), tdelete(), twalk()