1: #if defined(LIBC_SCCS) && !defined(lint)
2: static char sccsid[] = "@(#)atoi.c 5.2 (Berkeley) 3/9/86";
3: #endif LIBC_SCCS and not lint
4:
5: atoi(p)
6: register char *p;
7: {
8: register int n;
9: register int f;
10:
11: n = 0;
12: f = 0;
13: for(;;p++) {
14: switch(*p) {
15: case ' ':
16: case '\t':
17: continue;
18: case '-':
19: f++;
20: case '+':
21: p++;
22: }
23: break;
24: }
25: while(*p >= '0' && *p <= '9')
26: n = n*10 + *p++ - '0';
27: return(f? -n: n);
28: }
Defined functions
atoi
defined in line
5; used 722 times
- in /usr/ingres/source/ctlmod/main.c line
150,
166,
181,
189-197(3),
211-218(4)
- in /usr/ingres/source/dbu/copy.c line
532,
648
- in /usr/ingres/source/dbu/create.c line
525
- in /usr/ingres/source/dbu/display.c line
88
- in /usr/ingres/source/dbu/modify.c line
209,
684,
701,
723
- in /usr/ingres/source/dbu/rmqm.c line
90,
214,
447
- in /usr/ingres/source/dbu/save.c line
76-81(2),
202
- in /usr/ingres/source/equel/main.c line
156
- in /usr/ingres/source/gutil/atof.c line
116
- in /usr/ingres/source/gutil/trace.c line
152
- in /usr/ingres/source/iutil/initucode.c line
386-389(2)
- in /usr/ingres/source/monitor/ttymon.c line
279
- in /usr/ingres/source/ovqp/typecheck.c line
130
- in /usr/ingres/source/parser/par_util.c line
243
- in /usr/ingres/source/support/creatdb.c line
1024
- in /usr/ingres/source/support/error.c line
56
- in /usr/ingres/source/support/ingres.y line
851,
858,
888-891(2),
1582
- in /usr/ingres/source/support/printr.c line
89,
99,
114-122(3),
158-165(4)
- in /usr/ingres/source/support/timefix.c line
360,
369
- in /usr/src/bin/as/asmain.c line
272
- in /usr/src/bin/chgrp.c line
63
- in /usr/src/bin/csh/sh.proc.c line
54,
86,
792,
854,
933
- in /usr/src/bin/diff/diff.c line
78
- in /usr/src/bin/kill.c line
42,
66
- in /usr/src/bin/ld.c line
416
- in /usr/src/bin/mail.c line
478
- in /usr/src/bin/mt.c line
84
- in /usr/src/bin/nice.c line
29
- in /usr/src/bin/pr.c line
82-86(2),
102,
113
- in /usr/src/bin/ps.c line
331
- in /usr/src/bin/stty.c line
283-288(2)
- in /usr/src/bin/tar.c line
211
- in /usr/src/bin/test.c line
110,
129-142(7)
- in /usr/src/etc/bad144.c line
164,
177
- in /usr/src/etc/badsect.c line
98
- in /usr/src/etc/chown.c line
76,
83
- in /usr/src/etc/clri.c line
67,
83
- in /usr/src/etc/comsat.c line
155
- in /usr/src/etc/config/mkheaders.c line
101
- in /usr/src/etc/config/mkswapconf.c line
120
- in /usr/src/etc/diskpart.c line
330
- in /usr/src/etc/dump.4.1/dumpmain.c line
72
- in /usr/src/etc/dump.4.1/unctime.c line
44-48(5)
- in /usr/src/etc/dump/dumpmain.c line
78
- in /usr/src/etc/dump/dumprmt.c line
222
- in /usr/src/etc/dump/unctime.c line
46-50(5)
- in /usr/src/etc/edquota.c line
102
- in /usr/src/etc/flcopy.c line
62-64(2)
- in /usr/src/etc/fsck/main.c line
49-51(2)
- in /usr/src/etc/ftpd/ftpcmd.y line
727
- in /usr/src/etc/ftpd/ftpd.c line
138
- in /usr/src/etc/ifconfig.c line
275
- in /usr/src/etc/implog/implog.c line
92,
104,
114,
124
- in /usr/src/etc/mkfs.c line
159,
179,
200-204(2),
216-220(2),
294,
418,
478,
489
- in /usr/src/etc/named/ns_main.c line
142,
153
- in /usr/src/etc/named/tools/nstest.c line
42,
99,
140
- in /usr/src/etc/newfs.c line
94,
104,
127,
136,
145,
154,
163,
173,
182
- in /usr/src/etc/ping.c line
124,
134
- in /usr/src/etc/renice.c line
39,
68
- in /usr/src/etc/restore/main.c line
121,
136
- in /usr/src/etc/restore/tape.c line
260
- in /usr/src/etc/rmt.c line
76,
92(2),
99,
117,
131-132(2)
- in /usr/src/etc/route.c line
329
- in /usr/src/etc/savecore.c line
386
- in /usr/src/etc/slattach.c line
40
- in /usr/src/etc/syslogd.c line
184,
1070
- in /usr/src/etc/telnetd.c line
130
- in /usr/src/etc/tunefs.c line
84,
99,
114,
128
- in /usr/src/etc/vipw.c line
119
- in /usr/src/games/adventure/io.c line
201,
301-306(3),
481
- in /usr/src/games/banner.c line
1002
- in /usr/src/games/cribbage/test.c line
41
- in /usr/src/games/robots/main.c line
38
- in /usr/src/games/sail/main.c line
66
- in /usr/src/games/snake/snake.c line
114-119(2)
- in /usr/src/games/worm.c line
61
- in /usr/src/games/worms.c line
179,
186
- in /usr/src/lib/cpp/cpp.c line
802
- in /usr/src/lib/libc/gen/getgrent.c line
53
- in /usr/src/lib/libc/gen/getpwent.c line
75-77(2)
- in /usr/src/lib/libc/net/getprotoent.c line
73
- in /usr/src/lib/libc/net/getservent.c line
74
- in /usr/src/new/B/src/b/retab.c line
42
- in /usr/src/new/B/src/bed/edit.c line
286
- in /usr/src/new/B/src/bed/main.c line
111
- in /usr/src/new/B/src/bint/b3err.c line
89
- in /usr/src/new/X/X/main.c line
147,
153-157(2),
167,
175-179(2),
712,
803
- in /usr/src/new/X/XMenu/XMenuCreate.c line
60,
269,
311
- in /usr/src/new/X/Xlib/XCreate.c line
98-101(2)
- in /usr/src/new/X/Xlib/XCreateTerm.c line
107-110(2)
- in /usr/src/new/X/Xlib/XOpenDisplay.c line
81
- in /usr/src/new/X/Xlib/XParseGeom.c line
48-53(2),
60-64(2)
- in /usr/src/new/X/bitmap/bitmap.c line
223
- in /usr/src/new/X/comsat/comsat.c line
153,
428-436(5)
- in /usr/src/new/X/hacks/maze/maze.c line
82
- in /usr/src/new/X/libnest/nest.c line
60,
236
- in /usr/src/new/X/xclock/xclock.c line
128,
142,
152,
179,
225,
236
- in /usr/src/new/X/xdvi/dv.c line
147,
156,
162-167(2)
- in /usr/src/new/X/xfd/xfd.c line
53,
82
- in /usr/src/new/X/xgedit/gcmd.c line
84
- in /usr/src/new/X/xgedit/gedit.c line
167
- in /usr/src/new/X/xgedit/gx.c line
275
- in /usr/src/new/X/ximpv/impv.c line
152,
197,
206,
271
- in /usr/src/new/X/xload/xload.c line
205,
214-216(2),
240,
276,
282
- in /usr/src/new/X/xnwm/xnwm.c line
162-165(2),
278,
286
- in /usr/src/new/X/xpr/xpr.c line
136,
242-245(2)
- in /usr/src/new/X/xset/xset.c line
54,
72,
85,
91,
107,
113,
152
- in /usr/src/new/X/xsetroot/xsetroot.c line
196-198(2)
- in /usr/src/new/X/xshell/xshell.c line
201-210(4),
253-268(4)
- in /usr/src/new/X/xshell/xutils.c line
58,
64,
76,
82,
94-98(2)
- in /usr/src/new/X/xterm/main.c line
114-117(2),
267,
274
- in /usr/src/new/X/xwm/main.c line
100-107(4),
186,
201
- in /usr/src/new/bib/src/bibargs.c line
94,
114,
122,
174,
282,
317,
342
- in /usr/src/new/bib/src/invert.c line
125-127(2)
- in /usr/src/new/bib/src/lookup.c line
79
- in /usr/src/new/dipress/src/bin/charset/charset.c line
81
- in /usr/src/new/dipress/src/bin/dipress/main.c line
46
- in /usr/src/new/dipress/src/bin/maha/maha.c line
622
- in /usr/src/new/dipress/src/bin/makextdev/makextdev.c line
153,
326
- in /usr/src/new/dsh/src/dbid.c line
110
- in /usr/src/new/dsh/src/getrc.c line
63
- in /usr/src/new/emacs/etc/loadst.c line
131
- in /usr/src/new/emacs/shortnames/dups.c line
26
- in /usr/src/new/emacs/shortnames/names.c line
31
- in /usr/src/new/emacs/src/data.c line
965
- in /usr/src/new/emacs/src/doprnt.c line
77
- in /usr/src/new/emacs/src/filelock.c line
180
- in /usr/src/new/emacs/src/lread.c line
649
- in /usr/src/new/emacs/src/termcap.c line
99
- in /usr/src/new/emacs/src/tparam.c line
213-215(3)
- in /usr/src/new/help/help.c line
695-697(2),
1192-1194(2)
- in /usr/src/new/icon/iconx/init.c line
413-426(7)
- in /usr/src/new/icon/link/lmem.c line
102,
114
- in /usr/src/new/icon/pilib/init.c line
413-426(7)
- in /usr/src/new/icon/tran/itran.c line
71,
83
- in /usr/src/new/jove/portsrv.c line
117
- in /usr/src/new/jove/recover.c line
298,
715
- in /usr/src/new/kermit/ckucmd.c line
188
- in /usr/src/new/kermit/ckufio.c line
611
- in /usr/src/new/kermit/ckuusr.c line
303
- in /usr/src/new/mh/conf/config/mts.c line
255-262(4)
- in /usr/src/new/mh/miscellany/less/command.c line
121
- in /usr/src/new/mh/miscellany/patch/patch.c line
428
- in /usr/src/new/mh/mts/sendmail/smail.c line
624
- in /usr/src/new/mh/sbr/formatsbr.c line
357
- in /usr/src/new/mh/sbr/m_convert.c line
123,
204
- in /usr/src/new/mh/sbr/m_getdefs.c line
178
- in /usr/src/new/mh/support/bboards/bbexp.c line
47-52(2)
- in /usr/src/new/mh/support/bboards/mmdfI/bboards/getbbent.c line
393
- in /usr/src/new/mh/support/bboards/mmdfII/bboards/getbbent.c line
393
- in /usr/src/new/mh/support/pop/mmdfII/pop/getbbent.c line
393
- in /usr/src/new/mh/support/pop/popd.c line
222
- in /usr/src/new/mh/support/pop/popser.c line
709,
748,
777,
818-822(2),
1037
- in /usr/src/new/mh/uip/aliasbr.c line
334,
366
- in /usr/src/new/mh/uip/ap.c line
108
- in /usr/src/new/mh/uip/bbc.c line
682
- in /usr/src/new/mh/uip/bbl.c line
401
- in /usr/src/new/mh/uip/dp.c line
99
- in /usr/src/new/mh/uip/forw.c line
251,
257,
370,
376
- in /usr/src/new/mh/uip/inc.c line
280
- in /usr/src/new/mh/uip/mhlsbr.c line
321,
327,
606
- in /usr/src/new/mh/uip/msh.c line
227,
233,
239,
262,
268,
276,
284,
1161
- in /usr/src/new/mh/uip/mshcmds.c line
2041
- in /usr/src/new/mh/uip/picksbr.c line
887
- in /usr/src/new/mh/uip/post.c line
409,
423
- in /usr/src/new/mh/uip/repl.c line
294
- in /usr/src/new/mh/uip/scan.c line
142
- in /usr/src/new/mh/uip/send.c line
375-379(2)
- in /usr/src/new/mh/uip/spost.c line
311
- in /usr/src/new/mh/uip/umhook.c line
105
- in /usr/src/new/mh/uip/vmhtest.c line
71,
77
- in /usr/src/new/mh/uip/whatnowsbr.c line
156,
722-726(2)
- in /usr/src/new/mh/uip/whom.c line
151
- in /usr/src/new/mh/zotnet/bboards/getbbent.c line
393
- in /usr/src/new/mh/zotnet/mts/mts.c line
255-262(4)
- in /usr/src/new/news/src/expire.c line
141
- in /usr/src/new/news/src/header.c line
223
- in /usr/src/new/news/uucp/uux.minus.c line
46,
57
- in /usr/src/new/nntp/inews/inews.c line
50,
80
- in /usr/src/new/nntp/rrn/init.c line
241
- in /usr/src/new/nntp/rrn/intrp.c line
219,
245
- in /usr/src/new/nntp/rrn/rcstuff.c line
103,
537
- in /usr/src/new/nntp/rrn/sw.c line
164-165(2),
187,
207-209(2),
243,
270,
311,
325
- in /usr/src/new/nntp/server/common.h line
35
- in /usr/src/new/nntp/server/misc.c line
34,
64,
339
- in /usr/src/new/nntp/server/newgroups.c line
90
- in /usr/src/new/nntp/server/scandir.c line
41
- in /usr/src/new/nntp/support/mkgrdates.c line
95
- in /usr/src/new/nntp/xmit/get_tcp_conn.c line
73
- in /usr/src/new/nntp/xmit/remote.c line
82
- in /usr/src/new/notes/src/bnewshead.c line
205
- in /usr/src/new/notes/src/nfarchive.c line
76,
89
- in /usr/src/new/notes/src/nfprint.c line
92
- in /usr/src/new/notes/utility/nfrank.c line
30
- in /usr/src/new/patch/patch.c line
439
- in /usr/src/new/rcs/src/rcsrev.c line
242
- in /usr/src/new/rn/init.c line
234
- in /usr/src/new/rn/intrp.c line
219,
245
- in /usr/src/new/rn/rcstuff.c line
95,
516
- in /usr/src/new/rn/sw.c line
164-165(2),
187,
207-209(2),
243,
270,
311,
325
- in /usr/src/new/spms/src/bin/pexec/Pexec.c line
43,
87
- in /usr/src/new/spms/src/bin/pexec/pdset.c line
443-447(2)
- in /usr/src/new/spms/src/bin/plog/date.c line
116,
122-126(2),
136-139(4)
- in /usr/src/new/sunrpc/rpcinfo.c line
88-98(6),
123-127(4),
136-141(4)
- in /usr/src/new/tac/tac.c line
53
- in /usr/src/new/tools/src/jot.c line
116-120(2)
- in /usr/src/new/tools/src/rs.c line
437-439(2),
468,
494
- in /usr/src/new/xns/examples/ch/enumerate.c line
19
- in /usr/src/new/xns/examples/filing/cmds.c line
516
- in /usr/src/new/xns/examples/gap/gaptelnet.c line
176
- in /usr/src/new/xns/examples/print/xnsprint.c line
102
- in /usr/src/new/xns/xnslib/getcourierent.c line
66
- in /usr/src/new/xns/xnslib/server.c line
147-151(2)
- in /usr/src/old/512restor.c line
252,
348
- in /usr/src/old/berknet/mach.c line
369-372(2)
- in /usr/src/old/berknet/mmail.c line
99
- in /usr/src/old/berknet/net.c line
236
- in /usr/src/old/berknet/netrc.c line
253-262(4),
268-274(3)
- in /usr/src/old/berknet/sendberkmail.c line
74
- in /usr/src/old/berknet/setup.c line
81,
89-94(2)
- in /usr/src/old/berknet/speeds.c line
17
- in /usr/src/old/cpnull.c line
47
- in /usr/src/old/cu.c line
174
- in /usr/src/old/fed/io.c line
268
- in /usr/src/old/fed/subr.c line
756,
1103
- in /usr/src/old/sdb/docomm.c line
275,
297,
315
- in /usr/src/old/vpr/sidebyside.c line
29
- in /usr/src/old/vpr/vpac.c line
156
- in /usr/src/ucb/Mail/cmd1.c line
151,
347,
424
- in /usr/src/ucb/Mail/cmd2.c line
439
- in /usr/src/ucb/Mail/fmt.c line
65
- in /usr/src/ucb/Mail/main.c line
170
- in /usr/src/ucb/apply.c line
44
- in /usr/src/ucb/compress/compress.c line
525
- in /usr/src/ucb/error/errorinput.c line
113
- in /usr/src/ucb/ftp/cmds.c line
71,
796
- in /usr/src/ucb/gcore.c line
126
- in /usr/src/ucb/gprof/gprof.c line
52
- in /usr/src/ucb/indent/args.c line
249
- in /usr/src/ucb/last.c line
70
- in /usr/src/ucb/leave.c line
38,
55,
66
- in /usr/src/ucb/logger.c line
202
- in /usr/src/ucb/msgs/msgs.c line
149-152(2),
693
- in /usr/src/ucb/netstat/main.c line
218,
230
- in /usr/src/ucb/quota.c line
76
- in /usr/src/ucb/rdist/server.c line
996,
1010,
1017
- in /usr/src/ucb/sysline/sysline.c line
336
- in /usr/src/ucb/systat/cmds.c line
62-65(2)
- in /usr/src/ucb/systat/main.c line
64
- in /usr/src/ucb/telnet.c line
2057,
2067
- in /usr/src/ucb/tftp/main.c line
171,
438,
464
- in /usr/src/ucb/tn3270/tn3270.c line
239
- in /usr/src/ucb/vmstat.c line
262,
323
- in /usr/src/undoc/copyout.c line
42(2),
49
- in /usr/src/undoc/sps/sps.c line
359,
396
- in /usr/src/usr.bin/at/at.c line
618,
630
- in /usr/src/usr.bin/at/atrm.c line
205
- in /usr/src/usr.bin/eqn/e.y line
93-96(4)
- in /usr/src/usr.bin/eqn/io.c line
164-165(2)
- in /usr/src/usr.bin/eqn/size.c line
11-15(3),
38-42(3)
- in /usr/src/usr.bin/find/find.c line
237-243(3),
250-254(2),
260-262(2),
617
- in /usr/src/usr.bin/learn/copy.c line
305
- in /usr/src/usr.bin/learn/selsub.c line
46
- in /usr/src/usr.bin/lex/parser.y line
305
- in /usr/src/usr.bin/nroff/n6.c line
201,
261
- in /usr/src/usr.bin/plot/atoplot.c line
20-23(2)
- in /usr/src/usr.bin/plot/crtdriver.c line
29-32(2)
- in /usr/src/usr.bin/plot/debug.c line
18-21(2)
- in /usr/src/usr.bin/plot/driver.c line
24-30(3)
- in /usr/src/usr.bin/plot/plottoa.c line
24-27(2)
- in /usr/src/usr.bin/prof/prof.c line
111
- in /usr/src/usr.bin/refer/flagger.c line
30
- in /usr/src/usr.bin/refer/glue1.c line
100,
108
- in /usr/src/usr.bin/refer/hunt1.c line
88,
94
- in /usr/src/usr.bin/refer/inv1.c line
41
- in /usr/src/usr.bin/refer/mkey1.c line
55-62(3)
- in /usr/src/usr.bin/refer/refer1.c line
29-33(2),
50,
61
- in /usr/src/usr.bin/refer/refer2.c line
70
- in /usr/src/usr.bin/refer/refer5.c line
216
- in /usr/src/usr.bin/refer/refer7.c line
62-65(2),
109-111(2)
- in /usr/src/usr.bin/refer/thash.c line
26
- in /usr/src/usr.bin/tbl/t4.c line
161
- in /usr/src/usr.bin/tip/cu.c line
45-50(2)
- in /usr/src/usr.bin/tip/tip.c line
75
- in /usr/src/usr.bin/tip/value.c line
142,
314
- in /usr/src/usr.bin/uucp/UUAIDS/uucpsrv.c line
27
- in /usr/src/usr.bin/uucp/aculib/bsdtcp.c line
31
- in /usr/src/usr.bin/uucp/aculib/hys.c line
132
- in /usr/src/usr.bin/uucp/aculib/mic.c line
64
- in /usr/src/usr.bin/uucp/aculib/rvmacs.c line
65
- in /usr/src/usr.bin/uucp/aculib/sy.c line
65,
76,
96-101(2)
- in /usr/src/usr.bin/uucp/aculib/unet.c line
25
- in /usr/src/usr.bin/uucp/aculib/vmacs.c line
66
- in /usr/src/usr.bin/uucp/cico.c line
132,
145,
151,
389,
401
- in /usr/src/usr.bin/uucp/cntrl.c line
291,
380,
537,
726
- in /usr/src/usr.bin/uucp/conn.c line
362,
610
- in /usr/src/usr.bin/uucp/uuclean.c line
61,
70
- in /usr/src/usr.bin/uucp/uucp.c line
90
- in /usr/src/usr.bin/uucp/uusnap.c line
276-278(2)
- in /usr/src/usr.bin/uucp/uux.c line
103
- in /usr/src/usr.bin/uucp/uuxqt.c line
93
- in /usr/src/usr.lib/libplot/imagen/linemod.c line
33-37(2)
- in /usr/src/usr.lib/lpr/cmds.c line
107
- in /usr/src/usr.lib/lpr/displayq.c line
187,
285
- in /usr/src/usr.lib/lpr/filters/lpf.c line
62-71(3)
- in /usr/src/usr.lib/lpr/filters/rvcat.c line
366-371(2)
- in /usr/src/usr.lib/lpr/filters/vcat.c line
352,
358
- in /usr/src/usr.lib/lpr/filters/vdmp.c line
55-60(2)
- in /usr/src/usr.lib/lpr/filters/vpf.c line
63-72(3)
- in /usr/src/usr.lib/lpr/filters/vplotf.c line
81,
92
- in /usr/src/usr.lib/lpr/filters/vpltdmp.c line
49-54(2)
- in /usr/src/usr.lib/lpr/filters/vpsf.c line
63-73(3)
- in /usr/src/usr.lib/lpr/filters/vwidth.c line
252,
261
- in /usr/src/usr.lib/lpr/lpd.c line
298,
328
- in /usr/src/usr.lib/lpr/lpq.c line
71,
95
- in /usr/src/usr.lib/lpr/lpr.c line
197-202(2)
- in /usr/src/usr.lib/lpr/lprm.c line
85
- in /usr/src/usr.lib/lpr/lptest.c line
33-37(2)
- in /usr/src/usr.lib/lpr/pac.c line
183
- in /usr/src/usr.lib/lpr/recvjob.c line
282
- in /usr/src/usr.lib/lpr/rmjob.c line
123
- in /usr/src/usr.lib/sendmail/aux/mconnect.c line
75
- in /usr/src/usr.lib/sendmail/src/deliver.c line
720
- in /usr/src/usr.lib/sendmail/src/main.c line
369,
576
- in /usr/src/usr.lib/sendmail/src/parseaddr.c line
807,
870
- in /usr/src/usr.lib/sendmail/src/readcf.c line
150,
226,
439,
717,
731,
787,
802,
836,
877,
893-901(3),
909-913(2)
- in /usr/src/usr.lib/sendmail/src/usersmtp.c line
448
Defined variables
sccsid
defined in line
2;
never used