The ts_get_ts() function

The ts_get_ts() function returns a pointer to the time series associated with the given time series descriptor.

Syntax

ts_timeseries *
ts_get_ts(ts_tsdesc *tsdesc)
tsdesc
The time series descriptor from ts_open().

Description

The ts_get_ts() function is useful when you must call a function that takes a time series argument (for example, ts_get_calname()), but you only have a tsdesc (time series descriptor).

Returns

A pointer to the time series associated with the given time series descriptor. This value can be freed by the caller after ts_close() has been called if the original time series was created by ts_create() or ts_copy(). To free it, use ts_free().