1: itoa(i1, a1)
   2: int i1;
   3: char    *a1;
   4: {
   5:     register char   *a;
   6:     register int    i;
   7:     register char   *j;
   8:     char        b[6];
   9: 
  10:     i = i1;
  11:     a = a1;
  12:     if (i < 0)
  13:     {
  14:         *a++ = '-';
  15:         i = -i;
  16:     }
  17:     j = &b[5];
  18:     *j-- = 0;
  19:     do
  20:     {
  21:         *j-- = i % 10 + '0';
  22:         i /= 10;
  23:     } while (i);
  24:     do
  25:     {
  26:         *a++ = *++j;
  27:     } while (*j);
  28:     return (0);
  29: }
Last modified: 1995-02-04
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2168
Valid CSS Valid XHTML 1.0 Strict