Chapter-3/3-4/itoa.c
/* itoa:  convert n to characters in s */
convert n to characters in s
convert n to characters in s
void itoa(int n, char s[]) {
  int i, sign;
  sign = n;
  i = 0;
  do {                          
    s[i++] = abs(n % 10) + '0'; 
  } while (n /= 10);            
  if (sign < 0) s[i++] = '-';
  s[i] = '\0';
  reverse(s);
}
void itoa ( int n , char s [ ] ) { int i , sign ; sign = n ; i = 0 ; do { s [ i ++ ] = abs ( n % 10 ) + ' ' ; } while ( n /= 10 ) ; if ( sign < 0 ) s [ i ++ ] = ' ' ; s [ i ] = ' \0 ' ; reverse ( s ) ; }
itoa:  convert n to characters in s
itoa : convert n to characters in s
/* generate digits in reverse order */ /* get next digit */ /* delete it */