<!DOCTYPE File PUBLIC "-//Liam Quin//DTD C API Documentation v1.1//EN" "doc.dtd"><File>
<Entry dir="liblqtext">
<Function File="../../src/liblqtext/setfid.c">
<Name>LQT_GetMaxOrAllocateFID</Name>
<Class>Database/Documents
<Purpose>
Allocates a new FID, and writes the new value to disk.
If the <var>WriteCurrent</var> argument is zero, the
value is only written in one on every 1,000 calls.
<SeeAlso>
LQT_SyncDatabase
</Function>
<Decl>
API t_FID
LQT_GetMaxOrAllocateFID(db, WriteCurrent)
    t_LQTEXT_Database *db;
    int WriteCurrent;
</Decl>
</Entry>
