lq-text: LQT_MakeWordInfo

API t_WordInfo * LQT_MakeWordInfo (db, WID, Length, Word) t_LQTEXT_Database *db; t_WID WID; int Length; unsigned char *Word;

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_Make­Word­Info need not be NUL terminated; the Length parameter is the number of bytes in the Word string, not counting the trailing NUL, if present.

Errors

Fatal error if there isn't enough memory

See Also: