I\'d like to do something like printf(\"?\", count, char) to repeat a character count times.
printf(\"?\", count, char)
count
What is the right format-string to accomplish
If you limit yourself to repeating either a 0 or a space you can do:
For spaces:
printf("%*s", count, "");
For zeros:
printf("%0*d", count, 0);