1: #if defined(LIBC_SCCS) && !defined(lint)
   2: static char sccsid[] = "@(#)atol.c	5.2 (Berkeley) 3/9/86";
   3: #endif LIBC_SCCS and not lint
   4: 
   5: long
   6: atol(p)
   7: register char *p;
   8: {
   9:     long n;
  10:     register int f;
  11: 
  12:     n = 0;
  13:     f = 0;
  14:     for(;;p++) {
  15:         switch(*p) {
  16:         case ' ':
  17:         case '\t':
  18:             continue;
  19:         case '-':
  20:             f++;
  21:         case '+':
  22:             p++;
  23:         }
  24:         break;
  25:     }
  26:     while(*p >= '0' && *p <= '9')
  27:         n = n*10 + *p++ - '0';
  28:     return(f? -n: n);
  29: }

Defined functions

atol defined in line 5; used 151 times

Defined variables

sccsid defined in line 2; never used
Last modified: 1986-03-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1135
Valid CSS Valid XHTML 1.0 Strict