I need to align a series of numbers in C with printf() like this example:
-------1 -------5 ------50 -----100 ----1000
Of
Try converting to a string and then use "%4.4s" as the format specifier. This makes it a fixed width format.