table_colval - get the value from the column.

SYNOPSYS

	char  *table_colval (TableRow r, int column)
	int    table_colvali(TableRow r, int column)
	double table_colvald(TableRow r, int column)
	char  *table_colvals(TableRow r, int column)

PARAMETERS

TableRow r
A pointer to the table row.
int column
The column number to get the value for.

DESCRIPTION

table_colval returns a pointer to the value of the table column for row r. It is a macro which returns a pointer to the actual column buffer. The value should not be modified or freed.

table_colvali returns the value of the table column for row r as an integer.

table_colvald returns the value of the table column for row r as a double.

table_colvals returns a copy of the table column for row r as a ascii string allocated with strdup. The returned value may be freed with free(3) when it is no longer needed.

NOTES

The routines on this page are implimented as maros. Arguments should not contain side effects.