1: #include  "less.h"
   2: 
   3: /*
   4:  * Display some help.
   5:  * Just invoke another "less" to display the help file.
   6:  *
   7:  * {{ This makes this function very simple, and makes changing the
   8:  *    help file very easy, but it may present difficulties on
   9:  *    (non-Unix) systems which do not supply the "system()" function. }}
  10:  */
  11: 
  12:     public void
  13: help()
  14: {
  15:     char cmd[200];
  16: 
  17:     sprintf(cmd,
  18:      "-less -m '-Pm<HELP -- Press RETURN for more, or q when done >' %s",
  19:      HELPFILE);
  20:     lsystem(cmd);
  21:     error("End of help");
  22: }

Defined functions

help defined in line 12; used 2 times
Last modified: 1990-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 533
Valid CSS Valid XHTML 1.0 Strict