1: char *locv(lg)
   2: long    lg;
   3: {
   4:     register char   *a;
   5:     register char   *j;
   6:     static char b[11];
   7: 
   8:     a = b;
   9:     if (lg < 0)
  10:     {
  11:         *a++ = '-';
  12:         lg = -lg;
  13:     }
  14:     j = &b[10];
  15:     *j-- = 0;
  16:     do
  17:     {
  18:         *j-- = lg % 10 + '0';
  19:         lg /= 10;
  20:     } while (lg);
  21:     do
  22:     {
  23:         *a++ = *++j;
  24:     } while (*j);
  25:     return (b);
  26: }

Defined functions

locv defined in line 1; used 83 times
Last modified: 1995-02-09
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 416
Valid CSS Valid XHTML 1.0 Strict