lq-text: LQT_FindFirstWIDMatchingPrefix

API t_WID LQT_FindFirstWIDMatchingPrefix (db, Prefix, PrefixLength) t_LQTEXT_Database *db; char *Prefix; int PrefixLength;

Purpose

Returns the lowest WID whose word matches the given Prefix.

The Prefix need not be nul-terminated; the given PrefixLength argument is used to find the end of the Prefix.

Returns

The WID on success, and zero on failure.

Errors

Warns if a database format error is detected.

See Also: