sqlite3
*
init_db(
int db_flag
)
)
function will try to initialize a connection to
man.db
which is an
Sqlite database and return a pointer to a sqlite3 structure.
The connection should subsequentially be closed by calling
close_db(
)
which will also release any resources being used by it.
The argument
db_flag
can be one of the following:
DB_READONLY
DB_WRITE
DB_CREATE
)
function will return a pointer to a sqlite3 structure which represents
a connection to the database.
In case the file
/var/db/man.db
does not exist and
DB_CREATE
is not used as a value of
db_flag
,
NULL
will be returned.
/var/db/man.db
|