Re:itoa.c (number to char conversion)
Thanks for your suggestion
I programmed a similar function, but startet filling the string from its end to get rid of the reverse order (very simple for fixed string lengths, but with leading zeroes).
If you dont like leading zeroes its also possible to calculate the string size before filling it (eg number of /10) so you dont have to use "strlen".
Post edited by: noti, at: 2008/11/26 03:50
login or register to reply
|