- apropos_search(&opts, e, NULL, list);
- exprfree(e);
- return(EXIT_SUCCESS);
-}
-
-/* ARGSUSED */
-static void
-list(struct rec *res, size_t sz, void *arg)
-{
- int i;
-
- qsort(res, sz, sizeof(struct rec), cmp);
-
- for (i = 0; i < (int)sz; i++)
- printf("%s(%s%s%s) - %s\n", res[i].title,
- res[i].cat,
- *res[i].arch ? "/" : "",
- *res[i].arch ? res[i].arch : "",
- res[i].desc);
-}