1: #include "hd.h"
2:
3: /* Help displays a file in paged mode. The parm is the file name. */
4:
5: help (parm) char *parm; {
6:
7: FILE *helpfile;
8:
9: helpfile = fopen (parm, "r");
10: if (helpfile == NULL) {
11: myperror (parm);
12: return FAILURE;
13: }
14: else page (helpfile);
15: fclose (helpfile);
16: return SUCCESS;
17: }
18:
19: /* Display is the command processor's version of help */
20: display (argv) char **argv; {
21: char name [STRMAX];
22:
23: if (*argv == CNULL) putmsg ("Display: ");
24:
25: if (getfname (*argv, name) == FAILURE) return FAILURE;
26: else return help (name);
27: }
Defined functions
help
defined in line
5; used 3 times