lq-text: LQT_FIDToDocumentTitle

API char * LQT_FIDToDocumentTitle (db, FID, Name) t_LQTEXT_Database *db; t_FID FID; char *Name;

Purpose

Returns a document title (from the database titles file) for a given FID. A binary search is used to locate a line in the titles file which starts with the given FID, as a decimal ASCII number, followed by a tab; the remainder of that line up to a newline or EOF is returnd. The second (Name) argument is only used on error.

Returns

Errors

Warns if the title file can't be opened.

Notes

The `lqkwic' client uses this function to expand ${Title}.