M
markww
Hi,
Is there a way to use sprintf() to put a number of zeros before a
number, like:
sprintf(szBuffer, "%i", 7);
"007";
I have a list of numbers I want to sort that are text based, and I want
to put zeros before some so they get sorted in order like:
007
008
009
010
011
012
Thanks
Is there a way to use sprintf() to put a number of zeros before a
number, like:
sprintf(szBuffer, "%i", 7);
"007";
I have a list of numbers I want to sort that are text based, and I want
to put zeros before some so they get sorted in order like:
007
008
009
010
011
012
Thanks