qdb_getoption()

Return the value for a database session option

Synopsis:

#include <qdb/qdb.h>

int qdb_getoption( qdb_hdt_t *hdl,
                   int option );

Arguments:

hdl
A pointer to the database handle.
option
The option you'd like to query. See qdb_setoption() for a list of database options.

Library:

qdb

Description:

This function returns the value of the option for the database hdl.

Returns:

0
The value of the option passed, either 0 (“off”) or 1 (“on”).
-1
The specified option isn't supported (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

qdb_setoption()