Is there a way to specify the number of spaces using a variable?
For example lets say I have a basic print statement:
var = 5
printf("%*d", width, someNumber);
You can find more info by man 3 printf
man 3 printf