version 1.14, 2011/12/28 01:17:01 |
version 1.15, 2012/01/05 22:07:42 |
|
|
|
|
static int cmp(const void *, const void *); |
static int cmp(const void *, const void *); |
static void list(struct res *, size_t, void *); |
static void list(struct res *, size_t, void *); |
static void usage(void); |
|
|
|
static char *progname; |
static char *progname; |
|
|
|
|
opts.cat = optarg; |
opts.cat = optarg; |
break; |
break; |
default: |
default: |
usage(); |
fprintf(stderr, |
|
"usage: %s [-C file] [-M path] [-m path]" |
|
" [-S arch] [-s section]%s ...\n", |
|
progname, |
|
whatis ? " name" : |
|
"\n expression"); |
return(EXIT_FAILURE); |
return(EXIT_FAILURE); |
} |
} |
|
|
|
|
|
|
return(strcasecmp(((const struct res *)p1)->title, |
return(strcasecmp(((const struct res *)p1)->title, |
((const struct res *)p2)->title)); |
((const struct res *)p2)->title)); |
} |
|
|
|
static void |
|
usage(void) |
|
{ |
|
|
|
fprintf(stderr, "usage: %s " |
|
"[-C file] " |
|
"[-M path] " |
|
"[-m path] " |
|
"[-S arch] " |
|
"[-s section] " |
|
"expression ...\n", |
|
progname); |
|
} |
} |