qdb_printmsg()

Print data from a query result

Synopsis:

#include <qdb/qdb.h>

int qdb_printmsg( FILE *file,
                  qdb_result_t *result,
                  int format );

Arguments:

file
A file handle where the function can send the results.
result
The query result you want to print.
format
The format you want the results in. Can be one of:

Library:

qdb

Description:

This function prints the results of an SQL SELECT query on a QDB database. You must specify a standard file stream, such as stdout.

Returns:

The number of rows in the results, or -1 if an error occurred (errno is set).

Errors:

EINVAL
Invalid format specified.

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

qdb_mprintf()