1: /* @(#)atol.c 2.1 SCCS id keyword */
2: long
3: atol(p)
4: register char *p;
5: {
6: long n;
7: register int f;
8:
9: n = 0;
10: f = 0;
11: for(;;p++) {
12: switch(*p) {
13: case ' ':
14: case '\t':
15: continue;
16: case '-':
17: f++;
18: case '+':
19: p++;
20: }
21: break;
22: }
23: while(*p >= '0' && *p <= '9')
24: n = n*10 + *p++ - '0';
25: return(f? -n: n);
26: }
Defined functions
atol
defined in line
2; used 31 times
- in /usr/src/cmd/dcheck.c line
34,
50
- in /usr/src/cmd/dump.c line
44,
105
- in /usr/src/cmd/expr.y line
64,
111(2),
131-132(2),
179-180(2)
- in /usr/src/cmd/icheck.c line
52,
90
- in /usr/src/cmd/ncheck.c line
47,
68
- in /usr/src/cmd/uucp/uusnap.c line
46,
235-237(2)
- in /usr/src/ucb/bad144.c line
51,
130,
147
- in /usr/src/ucb/badsect.c line
13,
24
- in /usr/src/ucb/dump/src/dump.h line
64
- in /usr/src/ucb/dump/src/dumpmain.c line
71
- in /usr/src/ucb/pascal/px/30io.s line
229
- in /usr/src/ucb/sendmail/src/readcf.c line
337,
410
- in /usr/src/ucb/setquota.c line
19,
45-49(2)