qdb_column_name()

Return a column's name

Synopsis:

#include <qdb/qdb.h>

const char * qdb_column_name( qdb_result_t *res,
                        int col );

Arguments:

res
A pointer to a result structure to check.
col
The index of the column name to return.

Library:

qdb

Description:

This function returns the name of a specified column index col, as defined in a database schema when the table was created.

Returns:

A pointer
A pointer to the specified column's name.
NULL
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

qdb_column_index(), qdb_column_decltype(), qdb_columns()