<!DOCTYPE File SYSTEM "doc.dtd">
<File>
<Entry dir="liblqtext">
<Function File="../../src/liblqtext/smalldb.c">
<H1 class=name>LQT_CurrentlyHaveWriteAccess</H1>
<H2 class="category">Class: Database/Database, Database/Files
</H2>
<pre class="decl">

API int
LQT_CurrentlyHaveWriteAccess(db)
    t_LQTEXT_Database *db;
</pre>

<h2 class=Purpose>Purpose</H2>
Returns non-zero if and only if the given database is open
with write access.
<H2 class="notes">Notes</H2>
Write access may on some systems be exclusive, so that no other
process can open the database, neither for reading nor for writing.
You should not rely on this, however.
<H2 class="SeeAlso">See Also</H2>
<Xref>LQT_ObtainWriteAccess</Xref>
<Xref>LQT_OpenDatabase</Xref>
</Function>
</Entry>
