I'm trying to print a list in C that lines up the index of the list and a colon to the ouput as follows:
...
8 : SOME STUFF
9 : MORE STUFF
10 : MORE STUFF BUT LESS PADDING
...
100: MORE STUFF BUT NO PADDING
...
I'm currently using:
printf("$%d", index);
printf(":"): // this is the line that needs changing
printf(" some stuff");