<!DOCTYPE File PUBLIC "-//Liam Quin//DTD C API Documentation v1.1//EN" "doc.dtd"><File>
<Entry dir="liblqtext">
<Function File="../../src/liblqtext/wordinfo.c">
<Name>LQT_WriteWordAndWID</Name>
<Class>Database/Update, Database/Words
<Purpose>
Saves the WID --> Word mapping in the wordlist database.
<Returns>
the given WID.
<Errors>
Fatal error if the database can't be opened, or if the
word couldn't be stored.
<Notes>
The reverse map, Word --> WID, is performed using LQT_WIDToWord,
and uses the copy of the word stored in the widindex block header.
<SeeAlso>
LQT_WIDToWord
LQT_WordToWID
LQT_PutWordInfoIntoIndex
</Function>
<Decl>
API t_WID
LQT_WriteWordAndWID(db, Word, Length, WID)
    t_LQTEXT_Database *db;
    char *Word;
    int Length;
    t_WID WID;
</Decl>
</Entry>
