Christopher Takahashi wrote:
I've written a char *itoa(int number, char* string, int radix) function and merged it into my personal copy of libc. I could commit the changes to CVS it Dmitry thinks its a good idea. It's not part of ANSI C which may be why it wasn't in there to start with.
it's part of stdlib.h as far as i can tell, but as you say not ANSI C. but it looks useful. i'm +1 for including it. but make sure it uses an appropriate license, that is: - the one in stdlib.h, see file header. (prefered) - GPL with exception as in printf.c
Its optimized for size (to but I haven't put much effort into making it small) which means it will still do the common bases (2,8,16) just as slow as any other base (there are much faster ways).
optimized for size is probably a good choice. if somebody wants large, he can use (sn)printf ;-)
chris