Thomas asked:
> What's wrong with:
>
> printf("%*i", 5, i);
>
> ? A lot easier and less bug-prone. Dynamically building
> a string for
> the first argument seems fairly dangerous to me.Yes, your solution is simpler and better for this simple case. But my point is that there's nothing special about printf() format strings, and they can be constructed on-the-fly *if necessary*. (I can't immediately think of a case where I've needed this capability, but it's nice to know it's possible!) David
