i have tried with this:
Code:
sprintf(msg, "Teste %02.2d",100);
sprintf(msg, "Teste %02.2d",100000);
sprintf(msg, "Teste %02.2d",100000000);
sprintf(msg, "Teste %2.2d",100);
sprintf(msg, "Teste %2.2d",100000);
sprintf(msg, "Teste %2.2d",100000000);
And still the same result for both.
1 - And again, i dont want you to write a program for me, i just want to know whats the difference between 2 masks(o2.2 and 2.2).
2 - I looked at the reference before and i understood that the 0 is used for left padding... Buf even if i dont use the 0 i still got the padding of 0 on the .2 number...
i just want to know something like "ITS FOR PADDING" or "ITS FOR THIS OR THAT", dont a program write if you dont want to your "majesty" ^^