<!DOCTYPE File SYSTEM "doc.dtd">
<File>
<Entry dir="liblqtext">
<Function File="../../src/liblqtext/close.c">
<H1 class=name>LQT_CloseDatabase</H1>
<H2 class="category">Class: Database/Database
</H2>
<pre class="decl">

API int
LQT_CloseDatabase(theDatabase)
    t_LQTEXT_Database *theDatabase;
</pre>

<h2 class=Purpose>Purpose</H2>
Closes the current lq-text database.
Any actions that have been registered with LQT_AddActionOnClose are
performed, including the ones that liblqtext has registered.
It is not necessary to call LQT_SyncDatabase before closing a
database, as LQT_CloseDatabase does this.
All pending data is flushed, and all file descriptors that have
been opened by liblqtext functions are closed.
Currently, not all allocated memory is freed, but any such memory
is not lost, because it will be reused on a subsequent call to
LQT_OpenDatabase.
<Returns>
zero.
<H2 class="SeeAlso">See Also</H2>
<Xref>LQT_AddActionOnClose</Xref>
<Xref>LQT_OpenDatabase</Xref>
<Xref>LQT_SyncDatabase</Xref>
</Function>
</Entry>
