man can't understand ur problem
----- Original Message ---- From: David Hamill <[EMAIL PROTECTED]> To: [email protected] Sent: Sunday, September 21, 2008 8:50:49 PM Subject: Re: [c-prog] Re: printf min fild width 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 [Non-text portions of this message have been removed]
