home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / PROCWRKB.ZIP / BENCH1.ZIP / HELP / HELPFUNC.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-07  |  1.1 KB  |  49 lines

  1. /* ==( bench/help.c )== */
  2. /* ----------------------------------------------- */
  3. /* Pro-C  Copyright (C) 1988 - 1990 Vestronix Inc. */
  4. /* Modification to this source is not supported    */
  5. /* by Vestronix Inc.                               */
  6. /*            All Rights Reserved                  */
  7. /* ----------------------------------------------- */
  8. /* Written   Nig   1-Jan-87                        */
  9. /* Modified  Geo  11-Dec-89  See comments below    */
  10. /* ----------------------------------------------- */
  11. /* %W%  (%H% %T%) */
  12.  
  13. /*
  14.  *  Modifications
  15.  *
  16.  *  11-Dec-89  Geo - V2 version
  17.  *  25-Oct-89  Geo - 1.32 Merge
  18. */
  19.  
  20. # include <stdio.h>
  21. # include <bench.h>
  22.  
  23. # include "help.h"
  24.  
  25. extern PROTO (void (*help_func), (int));
  26. PROTO (void do_helpmsg, (int));
  27. PROTO (void setup_help, (void));
  28.  
  29. extern char _helpfile_path[];
  30.  
  31. void setup_help()
  32. {
  33.     help_func = do_helpmsg;
  34. }
  35.  
  36. void do_helpmsg(hnum)
  37. int hnum;
  38. {
  39.     int curstate;
  40.  
  41.     if (!*_helpfile_path)  /* No help if no file */
  42.         return;
  43.  
  44.     curstate = cursor(OFF);
  45.     call_help(_helpfile_path, hnum);
  46.     cursor(curstate);
  47. }  
  48.  
  49.