home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 125.img / PRO-C4.ZIP / BENCH1.ZIP / HELP / HELP.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-28  |  1.2 KB  |  57 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. #ifdef ANSI
  29. extern void setup_help(void);
  30. #else
  31. extern void setup_help();
  32. #endif
  33.  
  34. char _helpfile_path[60];
  35.  
  36. /*
  37.  * Scan across executeable
  38.  * - really should look in {path}/help
  39. */ 
  40. int open_help(fname)
  41. char *fname;
  42. {
  43.     /*
  44.     * setup pointer to help function
  45.     */
  46.     setup_help(); 
  47.  
  48.     search_path(fname, _helpfile_path, ".hlp");
  49.  
  50.     return TRUE;
  51. }  /* open_help */
  52.  
  53. void close_help()
  54. {
  55.     return;
  56. }  /* close_help */
  57.