home *** CD-ROM | disk | FTP | other *** search
- /**
- *
- * Name HLCLOSE -- Free the help database index in memory.
- *
- * Synopsis result = hlclose();
- *
- * int result Error code indicating success or
- * failure of the operation.
- *
- * Description This function frees the help index pointed to by the
- * global variable b_phelp_index, and sets the global
- * string variable b_help_path to the NUL string ("").
- *
- * An error occurs if no database index currently exists.
- *
- * Returns result Error code. Possible values are:
- * HL_NO_ERROR Operation successful.
- * HL_NO_INDEX No index exists.
- *
- * b_phelp_index NIL.
- *
- * b_help_path The NUL string.
- *
- *
- * Version 6.00 (C)Copyright Blaise Computing Inc. 1989
- *
- **/
-
- #include <bhelp.h>
-
- int hlclose()
- {
- if (b_phelp_index == NIL)
- hlerror(HL_NO_INDEX);
-
- hlfrindx(b_phelp_index);
- b_help_path[0] = '\0';
-
- return(HL_NO_ERROR);
- }