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 / HELP.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-07  |  1.1 KB  |  53 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  Bob  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.  *  25-Oct-89  Bob - 1.32 Lattice ifdef
  19. */
  20.  
  21. # include <stdio.h>
  22. # include <bench.h>
  23.  
  24. #ifdef LATTICE
  25. # define mktemp tmpnam
  26. #endif
  27.  
  28. extern PROTO (void setup_help, (void));
  29.  
  30. char _helpfile_path[60];
  31.  
  32. /*
  33.  * Scan across executeable
  34.  * - really should look in {path}/help
  35. */ 
  36. int open_help(fname)
  37. char *fname;
  38. {
  39.     /*
  40.     * setup pointer to help function
  41.     */
  42.     setup_help(); 
  43.  
  44.     search_path(fname, _helpfile_path, ".hlp");
  45.  
  46.     return TRUE;
  47. }  /* open_help */
  48.  
  49. void close_help()
  50. {
  51.     return;
  52. }  /* close_help */
  53.