link *l;
if (!n->l) return (0);
- for (l = n->l; l; l = l->next)
- puts(l->p);
+ for (l = n->l; l; l = l->next) puts(l->p);
return (1);
}
static int n_longest(node *nn, const char *p, size_t sz)
{
node_longest *n = (node_longest *)nn;
- if (sz < n->len)
- return (0);
- if (sz > n->len)
- empty(n);
+ if (sz < n->len) return (0);
+ if (sz > n->len) empty(n);
insert(n, p, sz);
return (0);
}
static int n_shortest(node *nn, const char *p, size_t sz)
{
node_longest *n = (node_longest *)nn;
- if (n->len && sz > n->len)
- return (0);
- if (!n->len || sz < n->len)
- empty(n);
+ if (n->len && sz > n->len) return (0);
+ if (!n->len || sz < n->len) empty(n);
insert(n, p, sz);
return (0);
}