<!DOCTYPE File PUBLIC "-//Liam Quin//DTD C API Documentation v1.1//EN" "doc.dtd"><File>
<Entry dir="liblqtext">
<Function File="../../src/liblqtext/unpack.c">
<Name>LQT_UnpackAndOpen</Name>
<Class>Database/Documents
<Purpose>
Tries to open the named file, using compress or gunzip as
necessary.  Can append a .Z or .gz to the file name.
Currently, LQT_UnpackAndOpen makes a copy of a file if necessary;
a future version may create a pipe, and the interface will change.
<Returns>
<LIST>
<LI>an open file descriptor on success;
<LI>-1 if the file couldn't be opened.
</LIST>
<SeeAlso>
LQT_FindFile
LQT_MakeInput
</Function>
<Decl>
API int
LQT_UnpackAndOpen(db, FileName)
    t_LQTEXT_Database *db;
    char *FileName;
</Decl>
</Entry>
