1: /* @(#)atoi.c 2.1 SCCS id keyword */
2: atoi(p)
3: register char *p;
4: {
5: register int n;
6: register int f;
7:
8: n = 0;
9: f = 0;
10: for(;;p++) {
11: switch(*p) {
12: case ' ':
13: case '\t':
14: continue;
15: case '-':
16: f++;
17: case '+':
18: p++;
19: }
20: break;
21: }
22: while(*p >= '0' && *p <= '9')
23: n = n*10 + *p++ - '0';
24: return(f? -n: n);
25: }
Defined functions
atoi
defined in line
2; used 253 times
- in /usr/src/cmd/512restor.c line
256,
352
- in /usr/src/cmd/at.c line
302
- in /usr/src/cmd/chgrp.c line
26
- in /usr/src/cmd/chown.c line
33,
48
- in /usr/src/cmd/clri.c line
50,
70
- in /usr/src/cmd/cu.3451A.c line
201
- in /usr/src/cmd/cu.c line
174
- in /usr/src/cmd/diff/diff.c line
68
- in /usr/src/cmd/dump.c line
97
- in /usr/src/cmd/eqn/e.y line
92-95(4)
- in /usr/src/cmd/eqn/io.c line
152-153(2)
- in /usr/src/cmd/eqn/size.c line
7-11(3),
34-38(3)
- in /usr/src/cmd/find.c line
168-172(3),
178,
185,
191,
197-199(2),
509
- in /usr/src/cmd/fsck.c line
376-381(3),
1475-1480(2)
- in /usr/src/cmd/iostat.c line
126,
255
- in /usr/src/cmd/join.c line
61-63(2),
73-77(3)
- in /usr/src/cmd/kill.c line
45,
69
- in /usr/src/cmd/ld.c line
326,
452
- in /usr/src/cmd/learn/selsub.c line
28
- in /usr/src/cmd/lex/parser.y line
301
- in /usr/src/cmd/mkfs.c line
103-107(2),
190-191(2)
- in /usr/src/cmd/neqn/e.y line
92-95(4)
- in /usr/src/cmd/neqn/io.c line
152-153(2)
- in /usr/src/cmd/neqn/size.c line
7-11(3),
34-38(3)
- in /usr/src/cmd/neqn/y.tab.c line
501-510(4)
- in /usr/src/cmd/nice.c line
14
- in /usr/src/cmd/plot/driver.c line
14-17(2)
- in /usr/src/cmd/pr.c line
82-86(2),
102,
113
- in /usr/src/cmd/prof.c line
82
- in /usr/src/cmd/ps/ps.c line
212
- in /usr/src/cmd/ptx.c line
107,
124
- in /usr/src/cmd/refer/refer/refer1.c line
20-24(2),
31,
60
- in /usr/src/cmd/refer/refer/refer2.c line
68
- in /usr/src/cmd/refer/refer/refer5.c line
245
- in /usr/src/cmd/refer/refer/refer7.c line
58,
87,
97
- in /usr/src/cmd/refer/util/flagger.c line
20
- in /usr/src/cmd/refer/util/glue1.c line
82,
89
- in /usr/src/cmd/refer/util/hunt1.c line
74,
80
- in /usr/src/cmd/refer/util/inv1.c line
37
- in /usr/src/cmd/refer/util/mkey1.c line
46-53(3)
- in /usr/src/cmd/refer/util/refer1.c line
19-23(2),
50
- in /usr/src/cmd/refer/util/refer2.c line
66
- in /usr/src/cmd/refer/util/refer5.c line
182
- in /usr/src/cmd/refer/util/refer7.c line
56-58(2),
93
- in /usr/src/cmd/refer/util/thash.c line
20
- in /usr/src/cmd/restor.c line
229,
325
- in /usr/src/cmd/savecore.c line
309
- in /usr/src/cmd/split.c line
35
- in /usr/src/cmd/tar.c line
166
- in /usr/src/cmd/tbl/t4.c line
157
- in /usr/src/cmd/test.c line
101,
120-122(2)
- in /usr/src/cmd/tk.c line
47-52(2)
- in /usr/src/cmd/troff/font/mkfont.c line
38
- in /usr/src/cmd/uniq.c line
22,
29
- in /usr/src/cmd/uucp/4.2/condevs.c line
312,
412
- in /usr/src/cmd/uucp/4.2/conn.c line
223
- in /usr/src/cmd/uucp/DIALUP/condevs.c line
313,
413
- in /usr/src/cmd/uucp/DIALUP/conn.c line
226
- in /usr/src/cmd/uucp/UUAIDS/uucpsrv.c line
27
- in /usr/src/cmd/uucp/cico.c line
108,
121,
130,
238-243(2)
- in /usr/src/cmd/uucp/cntrl.c line
246,
313,
433,
602
- in /usr/src/cmd/uucp/condevs.c line
313,
413
- in /usr/src/cmd/uucp/conn.c line
226
- in /usr/src/cmd/uucp/uuclean.c line
64,
72
- in /usr/src/cmd/uucp/uucp.c line
75
- in /usr/src/cmd/uucp/uusnap.c line
231-233(2)
- in /usr/src/cmd/uucp/uux.c line
89
- in /usr/src/cmd/uucp/uuxqt.c line
77
- in /usr/src/games/banner.c line
999
- in /usr/src/games/snake/snake.c line
98-103(2)
- in /usr/src/lib/c/stdio/getgrent.c line
53
- in /usr/src/lib/c/stdio/getpwent.c line
63-65(2)
- in /usr/src/local/seqn/e.c line
391-394(4)
- in /usr/src/local/seqn/e.y line
92-95(4)
- in /usr/src/local/seqn/io.c line
152-153(2)
- in /usr/src/local/seqn/size.c line
7-11(3),
34-38(3)
- in /usr/src/sys/autoconfig/read_dtab.c line
96
- in /usr/src/ucb/Mail/cmd1.c line
141,
311,
387
- in /usr/src/ucb/Mail/cmd2.c line
429
- in /usr/src/ucb/Mail/fmt.c line
55
- in /usr/src/ucb/Mail/getname.c line
156,
162
- in /usr/src/ucb/Mail/main.c line
160
- in /usr/src/ucb/berknet/mach.c line
362-365(2)
- in /usr/src/ucb/berknet/mmail.c line
94
- in /usr/src/ucb/berknet/net.c line
181
- in /usr/src/ucb/berknet/netdaemon.c line
704,
741
- in /usr/src/ucb/berknet/netrc.c line
247-256(4),
262-268(3)
- in /usr/src/ucb/berknet/sendberkmail.c line
72
- in /usr/src/ucb/berknet/setup.c line
76,
84-89(2)
- in /usr/src/ucb/berknet/speeds.c line
14
- in /usr/src/ucb/berknet/sub.c line
53
- in /usr/src/ucb/csh/sh.proc.c line
56,
103,
817,
873,
953
- in /usr/src/ucb/delivermail/main.c line
215
- in /usr/src/ucb/delivermail/vax-mail.c line
475
- in /usr/src/ucb/dump/src/dumpmain.c line
63
- in /usr/src/ucb/dump/src/unctime.c line
36-40(5)
- in /usr/src/ucb/error/errorinput.c line
101
- in /usr/src/ucb/indent/indent.c line
1064-1073(4),
1094
- in /usr/src/ucb/lpr/src/lpd.c line
201
- in /usr/src/ucb/lpr/src/lpq.c line
73,
94,
240
- in /usr/src/ucb/lpr/src/lpr.c line
147,
175
- in /usr/src/ucb/lpr/src/lprm.c line
82,
236
- in /usr/src/ucb/msgs/msgs.c line
145-148(2),
671
- in /usr/src/ucb/oldcsh/getpwent.c line
86-89(2)
- in /usr/src/ucb/pwhash/src/libc/stdio/getpwent.c line
63-65(2)
- in /usr/src/ucb/sendmail/aux/getpwwho.c line
91-93(2)
- in /usr/src/ucb/sendmail/aux/logger.c line
56
- in /usr/src/ucb/sendmail/aux/mconnect.c line
57
- in /usr/src/ucb/sendmail/aux/syslog.c line
154,
174
- in /usr/src/ucb/sendmail/src/deliver.c line
699
- in /usr/src/ucb/sendmail/src/main.c line
279,
471
- in /usr/src/ucb/sendmail/src/parseaddr.c line
680,
743
- in /usr/src/ucb/sendmail/src/readcf.c line
126,
202,
389,
701,
716,
773,
788-792(2)
- in /usr/src/ucb/sendmail/src/usersmtp.c line
372