home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c070 / 4.ddi / TOOLS.4 / TCTSRC1.EXE / HLCLOSE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-31  |  891 b   |  41 lines

  1. /**
  2. *
  3. * Name        HLCLOSE -- Free the help database index in memory.
  4. *
  5. * Synopsis    result = hlclose();
  6. *
  7. *        int result         Error code indicating success or
  8. *                     failure of the operation.
  9. *
  10. * Description    This function frees the help index pointed to by the
  11. *        global variable b_phelp_index, and sets the global
  12. *        string variable b_help_path to the NUL string ("").
  13. *
  14. *        An error occurs if no database index currently exists.
  15. *
  16. * Returns    result        Error code. Possible values are:
  17. *                HL_NO_ERROR    Operation successful.
  18. *                HL_NO_INDEX    No index exists.
  19. *
  20. *        b_phelp_index    NIL.
  21. *
  22. *        b_help_path    The NUL string.
  23. *
  24. *
  25. * Version    6.00 (C)Copyright Blaise Computing Inc.  1989
  26. *
  27. **/
  28.  
  29. #include <bhelp.h>
  30.  
  31. int hlclose()
  32. {
  33.     if (b_phelp_index == NIL)
  34.     hlerror(HL_NO_INDEX);
  35.  
  36.     hlfrindx(b_phelp_index);
  37.     b_help_path[0] = '\0';
  38.  
  39.     return(HL_NO_ERROR);
  40. }
  41.