Hello
I have a scan function to get data from a string with comma seperated values: Scan (p_data_in_str, "%256i[ux]", p_lcos->lut[POS]) In this string, 256 is the [rep] according to the Scanning Functions help.
Now, some things have changed and the buffer can contain 256 or 1024 items. How can I use a variable in my Scan function (say the variable num_items contains the size of the array)? The code
Scan (p_data_in_str, "%num_itemsi[ux]", p_lcos->lut[POS]) obviously returns an error

I could use an if statement to solve my problem, but I would prefer to keep my code compatible with future changes...
Thanks for all hints.