#include <../tablelib/table.h>
int table_colarg(TableHead table, char *column, char *flag, char *form[], TableColArg
*val, int *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"TableColArg *val” - array of returned flag values."int *check” - array of returned flag switchedtable_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.
table_colarg returns the column number of the column or 0 if the column
is not in
the table.
SEE ALSO
——–
table_colval
,
table_colvals
,
table_colvali
,
table_colvald
,
table_rowloc
,
table_parsline
,
table_colpad
,
table_coladd
,
table_colnum
,
table_colnam
,
table_hdrfree
,
table_hdrnth
,
table_rowfree
,
table_header
,
table_rowput
,
table_hdrput
,
table_rowget
,
table_rowtrim
,
table_hdrget
,
table_hdrgetn
,
table_hdrgeti
,
table_hdrgetd
,
table_hdrgets
,
table_hdrfind
,
table_extract
,
table_load
,
table_loadva
,
table_mode
,
table_ncol
,
table_ofs
,
table_ors