I have been trying to look for the answer to this question...but I haven't found it.
I have to parse an string in C in the way
Send XMb to eth0 eth1 wlan0 with rates 1 2 3
Send YMb to em1 wlan0 with rates 2 5
The thing is that I don't know the amount of elements I'll have in the list..therefore I don't know how many %s to put.
Thanks in advance.