-
Website
http://codingexperiments.com/ -
Original page
http://codingexperiments.com/archives/324 -
Subscribe
All Comments -
Community
-
Top Commenters
-
i80and
4 comments · 1 points
-
ryansv
2 comments · 3 points
-
jokeyxero
3 comments · 1 points
-
Phil Glockner
3 comments · 79 points
-
JoseGosdin
2 comments · 1 points
-
-
Popular Threads
Would you mind if I added this to my website of C tricks with citation? http://ctips.pbwiki.com/
As for the leading zeros, I've used a recursive function where it'll keep calling itself with n/10 until n==0, then add each digit to the next char in the array, index of which is returned back down the call stack. But by then, sprintf would probably be just as good, but you get the idea...
Sure, go ahead and add it. I'm not sure where it would be more useful than sprintf/snprintf, though. Cool site, incidentally.
Interesting idea for recursion. I'd have have to play with that to fully get it, but I think I get the general idea.
But thanks anyway.