lq-text: LQT_SyncDatabase

API int LQT_SyncDatabase (theDatabase) t_LQTEXT_Database *theDatabase;

Purpose

Syncs the current lq-text database; that is, writes any pending data blocks to disk, and closes and deletes any temporary files. You could think of this function as closing the database and then opening it again, except that it doesn't actually do that.

Any actions that have been registered with LQT_Add­Action­On­Close with the LQT_ON_SYNC flag are performed, including the ones that liblqtext has registered internally.

It is not necessary to call LQT_Sync­Database before closing a database, as LQT_Close­Database does this.

Returns

zero.

See Also: