<!DOCTYPE File PUBLIC "-//Liam Quin//DTD C API Documentation v1.1//EN" "doc.dtd"><File>
<Entry dir="liblqtext">
<Function File="../../src/liblqtext/lastblk.c">
<Name>LQTp_FlushLastBlockCache</Name>
<Class>Database/Update, Database/Files
<Purpose>
<P>Ensures that all entries in the last block cache are written out
to disk.  This routine must be called before a routine that has
updated the database exits.</P>
<P>This routine is registered as an action to be performed on a
database close or sync, and so is called automatically by
LQT_CloseDatabase and LQT_SyncDatabase;
the ignored argument and the return value are for
compatibility with LQT_AddActionOnClose.
<Errors>
Warns if there are system problems writing the data or closing
the associated file.
<SeeAlso>
LQT_SetLastBlockInChain
LQT_LastBlockInChain
LQT_AddActionOnClose
LQT_CloseDatabase
</Function>
<Decl>
LIBRARY int
LQTp_FlushLastBlockCache(db)
    t_LQTEXT_Database *db;
</Decl>
</Entry>
