OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:rootp
(Results
1 - 2
of
2
) sorted by null
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
tfind.c
27
node **
rootp
= (node **)vrootp;
local
29
if (
rootp
== (struct node_t **)0)
31
while (*
rootp
!= (struct node_t *)0) { /* T1: */
33
if ((r = (*compar)(key, (*
rootp
)->key)) == 0) /* T2: */
34
return (*
rootp
); /* key found */
35
rootp
= (r < 0) ?
36
&(*
rootp
)->llink : /* T3: follow left branch */
37
&(*
rootp
)->rlink; /* T4: follow right branch */
tsearch.c
29
node **
rootp
= (node **)vrootp;
local
31
if (
rootp
== (struct node_t **)0)
33
while (*
rootp
!= (struct node_t *)0) { /* Knuth's T1: */
36
if ((r = (*compar)(key, (*
rootp
)->key)) == 0) /* T2: */
37
return ((void *)*
rootp
); /* we found it! */
38
rootp
= (r < 0) ?
39
&(*
rootp
)->left : /* T3: follow left branch */
40
&(*
rootp
)->right; /* T4: follow right branch */
44
*
rootp
= q; /* link new node to old */
56
node **
rootp
= (node **)vrootp
local
[
all
...]
Completed in 1244 milliseconds