table_colarg - parse a table program column argument.

SYNOPSYS

#include "table.h"

int table_colarg(table, column, flag, form[], value, check)

PARAMETERS

TableHead table
table to lookup column in.
char *column
column argument.
char *flag
string of allowed flags
char *form[]
array of strings indicating flag types
int *value
array of returned flag values.
int *check
array of returned flag switched

DESCRIPTION

table_colarg parses any flags from the end of a column name argument given to a table program on the program command line and calls table_col to look up the column in the table header. table_arg may also be used to parse column flags without looking up the column number. If table is NULL table_colnum is not called and the return value is 0.

RETURNS

table_colarg returns the column number of the column or 0 if the column is not in the table.