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 129 times
- in /usr/include/stdlib.h line
74
- in /usr/src/bin/chpass/chpass.c line
440-443(2)
- in /usr/src/bin/disklabel/disklabel.c line
803,
958
- in /usr/src/bin/expr.y line
54,
98(2),
118-119(2),
166-167(2)
- in /usr/src/bin/test/test.c line
99,
555
- in /usr/src/games/boggle/boggle.c line
541
- in /usr/src/games/warp/score.c line
156,
567
- in /usr/src/games/warp/warp.h line
458
- in /usr/src/lib/libc/gen/getpwent.c line
201-204(2),
276
- in /usr/src/libexec/comsat/comsat.c line
149
- in /usr/src/libexec/ftpd/ftpcmd.y line
493-496(2)
- in /usr/src/local/zmodem/sz.c line
671,
2048
- in /usr/src/new/kermit5.188/ckcfn3.c line
833,
909,
1018
- in /usr/src/new/kermit5.188/ckudia.c line
2297
- in /usr/src/new/kermit5.188/ckuus4.c line
2329(3)
- in /usr/src/new/kermit5.188/ckuus6.c line
528
- in /usr/src/new/kermit5.188/ckuusy.c line
345
- in /usr/src/new/rn/addng.c line
84
- in /usr/src/new/rn/bits.c line
280,
453,
514,
552-553(2),
563
- in /usr/src/new/rn/common.h line
761
- 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
124,
148,
247
- in /usr/src/new/rn/ngstuff.c line
159,
172
- in /usr/src/new/rn/rcln.c line
103-108(2),
215,
228-233(2),
361-362(3),
407
- in /usr/src/new/rn/rcstuff.c line
114
- in /usr/src/old/dump/dump.h line
68
- in /usr/src/old/dump/dumpmain.c line
71
- in /usr/src/sbin/badsect/badsect.c line
29
- in /usr/src/sbin/dcheck/dcheck.c line
57,
82
- in /usr/src/sbin/dump/dump.h line
64
- in /usr/src/sbin/dump/dumpmain.c line
338
- in /usr/src/sbin/icheck/icheck.c line
50,
88
- in /usr/src/sbin/mkfs/mkfs.c line
45,
190,
216
- in /usr/src/sbin/mkpasswd/mkpasswd.c line
221-224(2)
- in /usr/src/sbin/ncheck/ncheck.c line
61,
82
- in /usr/src/sbin/newfs/newfs.c line
79,
85,
95,
101
- in /usr/src/ucb/PORT/pascal/pdx/defs.h line
46
- in /usr/src/ucb/PORT/pascal/pdx/library.c line
38
- in /usr/src/ucb/PORT/pascal/utilities/pc3.c line
783
- in /usr/src/ucb/ftp/cmds.c line
2021-2025(2)
- in /usr/src/ucb/pascal/px/30io.s line
235
- in /usr/src/usr.bin/patch/common.h line
151
- in /usr/src/usr.bin/patch/pch.c line
292,
507,
513,
571,
577,
736-739(2),
747-750(2)
- in /usr/src/usr.bin/uucp/uusnap.c line
201,
280-282(2)
- in /usr/src/usr.sbin/bad144/bad144.c line
60,
139,
156
- in /usr/src/usr.sbin/lpr/recvjob.c line
29,
290
- in /usr/src/usr.sbin/rmt/rmt.c line
87
- in /usr/src/usr.sbin/sendmail.MX/src/queue.c line
456-466(3),
688,
744-748(2),
827,
876
- in /usr/src/usr.sbin/sendmail.MX/src/readcf.c line
395,
466
- in /usr/src/usr.sbin/sendmail/src/queue.c line
443-453(3),
675,
731-735(2),
814,
863
- in /usr/src/usr.sbin/sendmail/src/readcf.c line
389,
460
- in /usr/src/usr.sbin/vipw/vipw.c line
175,
187
Defined variables
sccsid
defined in line
2;
never used