Is there anyway that you can specify the width of an integer like this in C:
printf("%2.0d", var);
So basically I'd like to display leading 0's up to a certain width if the int is not already that long.
For instance I have a for loop printing out int's..
001
002
...
099
100
etc..