lq-text: LQT_WriteWordAndWID

API t_WID LQT_WriteWordAndWID (db, Word, Length, WID) t_LQTEXT_Database *db; char *Word; int Length; t_WID WID;

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.

See Also:

Notes

The reverse map, Word --> WID, is performed using LQT_WIDTo­Word, and uses the copy of the word stored in the widindex block header.