<!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_MakeWordInfo</Name>
<Class>Memory, Database/Words
<Purpose>
Constructs a new t_WordInfo structure containing a malloc'd and
NUL terminated copy of the given word.  The word as passed into
LQT_MakeWordInfo need not be NUL terminated; the Length parameter
is the number of bytes in the Word string, not counting the
trailing NUL, if present.
<SeeAlso>
LQT_ReadWordFromStringPointer, LQT_DestroyWordInfo, LQT_WordToWID
<Errors>
Fatal error if there isn't enough memory
</Function>
<Decl>
API t_WordInfo *
LQT_MakeWordInfo(db, WID, Length, Word)
    t_LQTEXT_Database *db;
    t_WID WID;
    int Length;
    unsigned char *Word;
</Decl>
</Entry>
