TBLT_RETC TBLT_ENTRY BltIx4CloseFile(TBLT_KH *khPtr); khPtr IO:index file control structureThis routine closes an IX4 index file that was opened by
BltIx4OpenFile()
.
Any file that has been written to must be closed by calling this routine before ending your program. If the data structure at khPtr is no longer required, you should release the memory after a successful close.
This routine should be called for every open file handle opened by
BltIx4OpenFile()
regardless of exit conditions. It's recommened
that an exit handler be installed and for it to verify that all handles opened
are closed before exiting your program.
Return: Non-zero indicates an error, otherwise the file's IX4 header was updated
and the handle closed.