<!DOCTYPE File PUBLIC "-//Liam Quin//DTD C API Documentation v1.1//EN" "doc.dtd"><File>
<Entry dir="liblqtext">
<Function File="../../src/liblqtext/close.c">
<Name>LQT_CloseDatabase</Name>
<Class>Database/Database
<Purpose>
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.
<SeeAlso>
LQT_AddActionOnClose
LQT_OpenDatabase
LQT_SyncDatabase
</Function>
<Decl>
API int
LQT_CloseDatabase(theDatabase)
    t_LQTEXT_Database *theDatabase;
</Decl>
</Entry>
