RCP API  6.61.0

◆ c_list_fill_generic()

c_list_error_t c_list_fill_generic ( c_list_t c_list,
int  min,
int  max,
int  step,
int  divider,
int  precision,
const char *  postfix,
const char *  prefix 
)

Create list using min, max, step.

Create a list given a min value, max value and step size. The string for each entry will be generated using the divider and precision parameters. For example, if divider is 1000 and precision is 3, the value 1000 will be represented as "1.000". Furthermore, each string will have the prefix and postfix added to the string.

Note
: The list will be cleared of any existing data before being filled with new data.
Parameters
[in]c_listlist object
[in]minminimum value in list
[in]maxmaximum value in list
[in]stepstep size used to create values between min and max
[in]dividerdivider used to create string
[in]precisionprecision (number of digits after decimal point) used to create string
[in]postfixstring to the appended to end of string
[in]prefixstring to be prepended to beginning of string
Returns
C_LIST_SUCCESS on success.