2 * See the file LICENSE for redistribution information.
4 * Copyright: 2010- 1stclass.co.jp. All rights reserved.
6 * Created by Hajime Kurita
11 #include "1stclass.hpp"
12 int firstclass::itoa(int n, char s[]){
15 int itoa(int n, char s[]){
21 do { // generate digits in reverse order
22 s[i++] = n % 10 + '0'; // get next digit
23 } while ((n /= 10) > 0); // delete it