/* help.c - Display of assorted help texts */
static char *rcsid
= "$Header: /f/osi/others/quipu/uips/sd/RCS/help.c,v 7.2 91/02/22 09:32:16 mrose Interim $";
* $Header: /f/osi/others/quipu/uips/sd/RCS/help.c,v 7.2 91/02/22 09:32:16 mrose Interim $
#define HELPDIR "sd/helpdir/"
extern str_seq curr_dnseq
;
extern int current_entry
, entry_number
, display_entry
;
void tprint(), scrollbar();
get_help("help", " Press <KEY> to get detailed help.\n");
get_help("help", " SD X.500 Directory Agent - Concise Help\n");
get_help("widen", " The \"Widen Area\" Function.\n");
get_help("look", " The \"Look Back\" Function.\n");
get_help("number", " The \"Go To Number\" Function.\n");
get_help("search", " The \"Search\" Function");
get_help("list", " The \"List\" Function");
void get_help(filename
, line
)
display_entry
= current_entry
= 1;
(void) strcpy(filebuf
, HELPDIR
);
(void) strcat(filebuf
, filename
);
(void) strcpy(helpbuf
, isodefile(filebuf
, 0));
if ((helpfp
= fopen(helpbuf
, "r")) == (FILE *)NULL
) {
tprint("Can't open help file '%s'.\n",helpbuf
);
while(fgets(filebuf
, BUFLEN
, helpfp
) != (char *) NULL
) {
while(*str
!= '\n' && *str
!= '\0') str
++;
add_seq(&textseq
, filebuf
);