-static chr_t_entry *find_entry(chr_t_entry *t, const char **from, int len)
-{
- chr_t_entry *res;
-
- if (len && t->children && t->children[(unsigned char) **from])
- {
- const char *pos = *from;
-
- (*from)++;
- if ((res = find_entry(t->children[(unsigned char) *pos],
- from, len - 1)))
- return res;
- /* no match */
- *from = pos;
- }
- /* no children match. use ourselves, if we have a target */
- return t->target ? t : 0;
-}
-