<!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_WordToWID</Name>
<Class>Database/Retrieval, Database/Words
<Purpose>
Returns the WID for a given Word.
It is not necessary that the word be NUL terminated.
The Length argument is the number of bytes in the Word,
not including any trailing NUL byte
<Returns>
<LIST>
<LI>the WID on success
<LI>0 on failure
</LIST>
<SeeAlso>
LQT_WIDToWordInfo
<Errors>
Fatal error if the database can't be opened.
</Function>
<Decl>
API t_WID
LQT_WordToWID(db, Word, Length)
    t_LQTEXT_Database *db;
    char *Word;
    unsigned int Length;
</Decl>
</Entry>
