Vic Dura wrote:
> Hello,
>
> Is there anyway to specify the printf minimum field width at runtime?
> For example in
>
> printf("%5d", i);
>
> the min filed width is 5. I would like to calculate the min width at
> run-time, e.g. printf(%Wd", i); where W is calculated prior to the
> printf.
>
> Thanks for any suggestions.
printf("%*d", 5, i);
Something like that?
--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197
*NEW* MyTaskFocus 1.1
Get on task. Stay on task.
http://www.CubicleSoft.com/MyTaskFocus/