<!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>LQT_LastBlockInChain</Name>
<Class>Database/Update, Database/Files
<Purpose>
Returns the last block in the chain for a given WID.  The value
may have been set previously by LQT_SetLastBlockInChain, or
can be deduced by reading the chain from disk a block at a time
until the end is reached.
<Returns>
A pointer to the (extended) block in the data cache
<Errors>
Fatal error (E_BUG) if the value cannot be determined
<SeeAlso>
LQT_SetLastBlockInChain
</Function>
<Decl>
API unsigned char *
LQT_LastBlockInChain(db, WID, Offsetp, FirstUnusedBytepp, BlockLengthp)
    t_LQTEXT_Database *db;
    t_WID WID;
    unsigned long *Offsetp; /* in: first offset; Out: last offset */
    unsigned char **FirstUnusedBytepp; /* out only */ 
    unsigned int *BlockLengthp;
</Decl>
</Entry>
