qdb_rows()

Return the number of rows in a result

Synopsis:

#include <qdb/qdb.h>

int qdb_rows(qdb_result_t *res);

Arguments:

res
A pointer a result structure to check.

Library:

qdb

Description:

This function returns the number of rows in the result. If your query matched no rows in the database, then this function returns 0.

Returns:

>-1
The number of rows in the result set.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

qdb_rowchanges()