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
- in /usr/ingres/source/dbu/copy.c line
527
- in /usr/ingres/source/equel/number.c line
122
- in /usr/ingres/source/ovqp/typecheck.c line
128
- in /usr/ingres/source/parser/s_number.c line
93
- in /usr/src/bin/expr.y line
54,
98(2),
118-119(2),
166-167(2)
- in /usr/src/bin/ld.c line
664,
717,
815,
1683
- in /usr/src/bin/make/files.c line
521,
531-532(2)
- in /usr/src/bin/nm.c line
288
- in /usr/src/etc/dcheck.c line
53,
69
- in /usr/src/etc/dump.4.1/dump.h line
68
- in /usr/src/etc/dump.4.1/dumpmain.c line
80
- in /usr/src/etc/dump/dump.h line
72
- in /usr/src/etc/dump/dumpmain.c line
88,
98
- in /usr/src/etc/icheck.c line
77,
110
- in /usr/src/etc/ncheck.c line
66,
87
- in /usr/src/games/boggle/boggle.c line
544
- in /usr/src/new/emacs/man/texindex.c line
624(2),
858
- in /usr/src/new/mh/miscellany/patch/patch.c line
185,
1396-1399(2),
1412-1415(2),
1495-1498(2),
1518-1521(2),
1582-1585(2),
1593-1596(2)
- in /usr/src/new/news/src/batch.c line
62,
95
- in /usr/src/new/news/src/expire.c line
81,
151-153(2),
159-161(2),
756
- in /usr/src/new/news/src/ifuncs.c line
687
- in /usr/src/new/news/src/params.h line
94
- in /usr/src/new/news/src/postnews.c line
127
- in /usr/src/new/news/src/readr.c line
36,
410,
1061
- in /usr/src/new/news/src/unbatch.c line
42,
71
- in /usr/src/new/news/src/visual.c line
1069,
1138
- in /usr/src/new/nntp/rrn/addng.c line
94
- in /usr/src/new/nntp/rrn/bits.c line
267,
424,
485,
522-523(2),
533
- in /usr/src/new/nntp/rrn/common.h line
754
- in /usr/src/new/nntp/rrn/kfile.c line
87
- in /usr/src/new/nntp/rrn/kitlists.c line
38
- in /usr/src/new/nntp/rrn/last.c line
29-31(2)
- in /usr/src/new/nntp/rrn/ngdata.c line
120,
128,
227
- in /usr/src/new/nntp/rrn/ngstuff.c line
159,
172
- in /usr/src/new/nntp/rrn/rcln.c line
94-99(2),
206,
219-224(2),
352-353(3),
398
- in /usr/src/new/patch/patch.c line
187,
1412,
1418,
1434,
1440,
1518,
1524,
1547,
1553,
1629-1632(2),
1640-1643(2)
- in /usr/src/new/rn/addng.c line
59
- in /usr/src/new/rn/bits.c line
267,
441,
502,
539-540(2),
550
- in /usr/src/new/rn/common.h line
730
- in /usr/src/new/rn/kfile.c line
87
- in /usr/src/new/rn/kitlists.c line
38
- in /usr/src/new/rn/last.c line
29-31(2)
- in /usr/src/new/rn/ngdata.c line
83,
91,
190
- in /usr/src/new/rn/ngstuff.c line
159,
172
- in /usr/src/new/rn/rcln.c line
100-105(2),
212,
225-230(2),
358-359(3),
404
- in /usr/src/new/xns/xnslib/getcourierent.c line
64
- in /usr/src/old/vpr/vpd.c line
84
- in /usr/src/ucb/dbx/defs.h line
70
- in /usr/src/ucb/dbx/scanner.c line
558
- in /usr/src/ucb/pascal/pdx/defs.h line
46
- in /usr/src/ucb/pascal/pdx/library.c line
38
- in /usr/src/ucb/pascal/utilities/pc3.c line
783
- in /usr/src/usr.bin/ranlib.c line
32,
228
- in /usr/src/usr.bin/uucp/uusnap.c line
201,
280-282(2)
- in /usr/src/usr.lib/sendmail/src/queue.c line
448-458(3),
680,
736-740(2),
867
- in /usr/src/usr.lib/sendmail/src/readcf.c line
389,
460
Defined variables
sccsid
defined in line
2;
never used