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

display defined in line 20; used 4 times
help defined in line 5; used 3 times
Last modified: 1980-08-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 662
Valid CSS Valid XHTML 1.0 Strict