<!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_FindFirstWIDMatchingPrefix</Name>
<Class>Database/Retrieval, Database/Words
<Purpose>
<P>Returns the lowest WID whose word matches the given Prefix.</P>
<P>The Prefix need not be nul-terminated; the given PrefixLength
argument is used to find the end of the Prefix.</P>
<Returns>
The WID on success, and zero on failure.
<Errors>
Warns if a database format error is detected.
<SeeAlso>
LQT_WordToWID
</Function>
<Decl>
API t_WID
LQT_FindFirstWIDMatchingPrefix(db, Prefix, PrefixLength)
    t_LQTEXT_Database *db;
    char *Prefix;
    int PrefixLength;
</Decl>
</Entry>
