version 1.81, 2014/07/24 08:26:57 |
version 1.82, 2014/07/24 20:30:45 |
|
|
}; |
}; |
|
|
static void catman(const struct req *, const char *); |
static void catman(const struct req *, const char *); |
static int cmp(const void *, const void *); |
|
static void format(const struct req *, const char *); |
static void format(const struct req *, const char *); |
static void html_print(const char *); |
static void html_print(const char *); |
static void html_printquery(const struct req *); |
static void html_printquery(const struct req *); |
Line 593 pg_searchres(const struct req *req, struct manpage *r, |
|
Line 592 pg_searchres(const struct req *req, struct manpage *r, |
|
return; |
return; |
} |
} |
|
|
qsort(r, sz, sizeof(struct manpage), cmp); |
|
|
|
resp_begin_html(200, NULL); |
resp_begin_html(200, NULL); |
resp_searchform(req); |
resp_searchform(req); |
puts("<DIV CLASS=\"results\">"); |
puts("<DIV CLASS=\"results\">"); |
|
|
free(req.p[i]); |
free(req.p[i]); |
free(req.p); |
free(req.p); |
return(EXIT_SUCCESS); |
return(EXIT_SUCCESS); |
} |
|
|
|
static int |
|
cmp(const void *p1, const void *p2) |
|
{ |
|
|
|
return(strcasecmp(((const struct manpage *)p1)->names, |
|
((const struct manpage *)p2)->names)); |
|
} |
} |
|
|
/* |
/* |