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
28
node **
rootp
= (node **)vrootp;
local
30
if (
rootp
== (struct node_t **)0)
32
while (*
rootp
!= (struct node_t *)0) { /* T1: */
34
if ((r = (*compar)(key, (*
rootp
)->key)) == 0) /* T2: */
35
return (*
rootp
); /* key found */
36
rootp
= (r < 0) ?
37
&(*
rootp
)->llink : /* T3: follow left branch */
38
&(*
rootp
)->rlink; /* T4: follow right branch */
tsearch.c
30
node **
rootp
= (node **)vrootp;
local
32
if (
rootp
== (struct node_t **)0)
34
while (*
rootp
!= (struct node_t *)0) { /* Knuth's T1: */
37
if ((r = (*compar)(key, (*
rootp
)->key)) == 0) /* T2: */
38
return ((void *)*
rootp
); /* we found it! */
39
rootp
= (r < 0) ?
40
&(*
rootp
)->left : /* T3: follow left branch */
41
&(*
rootp
)->right; /* T4: follow right branch */
45
*
rootp
= q; /* link new node to old */
57
node **
rootp
= (node **)vrootp
local
[
all
...]
Completed in 130 milliseconds