version 1.20, 2014/01/06 03:02:39 |
version 1.21, 2014/04/11 15:45:39 |
|
|
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); |
|
|
|
|
} |
} |
|
|
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] " |