version 1.37, 2014/01/06 03:02:46 |
version 1.38, 2014/04/11 15:46:52 |
Line 95 main(int argc, char *argv[]) |
|
Line 95 main(int argc, char *argv[]) |
|
search.flags = whatis ? MANSEARCH_WHATIS : 0; |
search.flags = whatis ? MANSEARCH_WHATIS : 0; |
|
|
manpath_parse(&paths, conf_file, defpaths, auxpaths); |
manpath_parse(&paths, conf_file, defpaths, auxpaths); |
|
mansearch_setup(1); |
ch = mansearch(&search, &paths, argc, argv, outkey, &res, &sz); |
ch = mansearch(&search, &paths, argc, argv, outkey, &res, &sz); |
manpath_free(&paths); |
manpath_free(&paths); |
|
|
Line 110 main(int argc, char *argv[]) |
|
Line 111 main(int argc, char *argv[]) |
|
} |
} |
|
|
free(res); |
free(res); |
|
mansearch_setup(0); |
return(sz ? EXIT_SUCCESS : EXIT_FAILURE); |
return(sz ? EXIT_SUCCESS : EXIT_FAILURE); |
usage: |
usage: |
fprintf(stderr, "usage: %s [-C file] [-M path] [-m path] " |
fprintf(stderr, "usage: %s [-C file] [-M path] [-m path] " |