lq-text: LQT_CloseDatabase

API int LQT_CloseDatabase (theDatabase) t_LQTEXT_Database *theDatabase;

Purpose

Closes the current lq-text database. Any actions that have been registered with LQT_Add­Action­On­Close are performed, including the ones that liblqtext has registered. It is not necessary to call LQT_Sync­Database before closing a database, as LQT_Close­Database 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_Open­Database.

Returns

zero.

See Also: