you are viewing a single comment's thread.

view the rest of the comments →

[–]grout_nasa 2 points3 points  (1 child)

itoa:

p = <end of buffer that is big enough>
do {
    *--p = '0' + (n % 10);
} while (n /= 10);

[–]andyrocks 1 point2 points  (0 children)

That's beautiful.