oops ... I did that too quickly without thinking. above inserts leading zeroes! should insert the following before the main loop: while(...
A faster and more elegant implementation: inline int inttostr( char *s, int n ) { unsigned int i = 1000000000; /*...
Separate names with a comma.