in reply to Re: sprintf question
in thread sprintf to zero-pad on the right
Hi Mark, thanks for your reply and I should have explained further.
The total length I'm looking for is 8. So if I see a four character string (i.e TEST) I know I should append 4 zeros. If I see a three character string, I would append 5 zeros etc.
I thought sprintf would be a natural choice for this but couldn't get it to work...
|
|---|