Lines Matching defs:key
41 typedef struct node { POINTER key; struct node *llink, *rlink; } NODE;
44 * Find or insert key into search tree
47 * key: Key to be located
52 tsearch(POINTER key, NODE **rootp, int (*compar)(POINTER, POINTER))
54 NODE *q; /* New node if key not found */
59 int r = (*compar)(key, (*rootp)->key); /* T2: */
69 q->key = key; /* Initialize new node */
76 * Delete node with key key
79 * key: Key to be deleted
84 tdelete(POINTER key, NODE **rootp, int (*compar)(POINTER, POINTER))
93 while ((ans = (*compar)(key, (*rootp)->key)) != 0) {