Good morning everyone, my question is the following, it is possible to start a counter from 000000?, a reference with more numbers is always prettier, I have to say that I keep this reference in the eprom
yes
how?
You want to print leading zeroes if I understand it correctly.
So if a number is smaller than e.g 1,000,000 print a zero first
Next if it's smaller than 100,000, print another zero
Etc
Next print the number.
And there is sprintf / snprintf; e.g.
snprintf is preferred as it protects agains buffer overflow.
thank you very much friend I appreciate it, I have solved my problem
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.