There is no need to construct a special format string.
printf allows you to specify the precision using a parameter (that precedes the value)
if you use a .* as the precision in the format tag.
For example:
printf ("%d %.*s", number, SIZE, letters);