28 static char *
my_fgets(
char*,
int,FILE*);
39 #define prefix(x,y) ciprefix(x,y) 55 fprintf(stderr,
"Error: no top level topic\n");
63 fprintf(stderr,
"Error: No such topic: %s\n",
66 fprintf(stderr,
"Error: no top level topic\n");
82 int i, seealso, subtopics;
90 if (!(fp =
db_open(word,&bb))) {
91 fprintf(stderr,
"Error: no title for topic %s.\n", word);
122 if (seealso || subtopics) {
124 if (*s ==
'#' || *s ==
'*')
156 if ((s = strchr(buf,
'\n')) !=
NULL)
174 if ((i = strlen(buf)) > top->
maxcols)
194 for (num = 0,tl = *tlp; tl; tl = tl->
next) num++;
199 for (tl = *tlp, i = 0; tl; tl = tl->
next, i++)
203 (
int(*)(
const void*,
const void*))
sortcmp);
208 for (i = 0; i < num - 1; i++)
209 vec[i]->
next = vec[i + 1];
221 return (strcmp((*tlp1)->description, (*tlp2)->description));
271 fp = fopen(buf,
"rb");
321 if (HelpBase ==
NULL) {
341 if (keyword || title) {
372 for (bb = HelpBase; bb; bb = bb->
next) {
391 for (s = buf, i = size; i; s++, i--) {
void cp_pathfix(char *buf)
static char buf[MAXPROMPT]
void hlp_main(char *path, wordlist *wl)
static struct sHlpEnt * HelpBase
topic * hlp_read(char *word)
struct wordlist * wl_prev
static struct sHlpEnt * find_entry()
struct wordlist * wl_next
void hlp_free(topic *top)