The ts_colinfo_name() function
The ts_colinfo_name() function gets type information for a column in a time series.
Syntax
ts_typeinfo *
ts_colinfo_name (ts_tsdesc *tsdesc,
mi_string *colname)
- tsdesc
- A time series descriptor returned by ts_open().
- colname
- The name of the column to return information for.
Description
The resulting typeinfo structure and its ti_typename field must be freed by the caller.
Returns
A pointer to a ts_typeinfo structure.
This structure is defined as follows:
typedef struct _ts_typeinfo
{
MI_TYPEID *ti_typeid; /* type id */
mi_integer ti_typelen; /* internal length */
mi_smallint ti_typealign; /* internal alignment */
mi_smallint ti_typebyvalue; /* internal byvalue flag */
mi_integer ti_typebound; /* internal bound */
mi_integer ti_typeparameter; /* internal parameter */
mi_string *ti_typename; /* type name of the column */
} ts_typeinfo;