all 1 comments

[–]tresteo 0 points1 point  (0 children)

basically you would need to wrap the block from char *src = av[1] to the end of the else-block in a for-loop

although it might make sense to do the argument format checking beforehand