qdb_column_index()

Find a column by name

Synopsis:

#include <qdb/qdb.h>

int qdb_column_index( qdb_result_t *result,
                      const char *name );

Arguments:

result
A pointer to a result structure to check.
name
The name of the column to get the index number for.

Library:

qdb

Description:

This function returns the index for specified column name, name.

Returns:

>-1
The index of the specified column
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

qdb_column_decltype(), qdb_column_name(), qdb_columns()