1: #if defined(LIBC_SCCS) && !defined(lint)
2: static char sccsid[] = "@(#)gets.c 5.2 (Berkeley) 3/9/86";
3: #endif LIBC_SCCS and not lint
4:
5: #include <stdio.h>
6:
7: char *
8: gets(s)
9: char *s;
10: {
11: register c;
12: register char *cs;
13:
14: cs = s;
15: while ((c = getchar()) != '\n' && c != EOF)
16: *cs++ = c;
17: if (c == EOF && cs==s)
18: return(NULL);
19: *cs++ = '\0';
20: return(s);
21: }
Defined functions
gets
defined in line
7; used 166 times
- in /usr/include/stdio.h line
61
- in /usr/src/etc/diskpart.c line
283,
289-294(2),
304,
311,
322
- in /usr/src/etc/fingerd.c line
40
- in /usr/src/etc/flcopy.c line
97
- in /usr/src/etc/icheck.c line
130
- in /usr/src/etc/mkfs.c line
178-182(2)
- in /usr/src/etc/named/tools/nstest.c line
73
- in /usr/src/etc/timed/timedc.c line
101
- in /usr/src/games/banner.c line
1045
- in /usr/src/games/btlgammon.c line
63,
70,
78-83(2),
110,
331
- in /usr/src/games/mille/varpush.c line
39
- in /usr/src/games/sail/externs.h line
283
- in /usr/src/games/sail/pl_main.c line
174
- in /usr/src/include/stdio.h line
61
- in /usr/src/new/X/keycomp/keycomp.c line
77
- in /usr/src/new/emacs/shortnames/defines.c line
9
- in /usr/src/new/emacs/shortnames/dups.c line
61
- in /usr/src/new/emacs/src/regex.c line
1527,
1547
- in /usr/src/new/help/help.c line
541,
549,
639,
1153,
1239
- in /usr/src/new/mh/miscellany/mem/:promptdate.c line
73-78(2)
- in /usr/src/new/mh/miscellany/mem/promptdate.c line
73-78(2)
- in /usr/src/new/mh/zotnet/tws/dtest.c line
16
- in /usr/src/new/mkmf/src/misc.c line
30-33(2)
- in /usr/src/new/news/src/postnews.c line
835,
866
- in /usr/src/new/news/src/readnews.c line
231
- in /usr/src/new/news/src/readr.c line
1029
- in /usr/src/new/news/src/unbatch.c line
41-46(2),
68,
112
- in /usr/src/new/nntp/inews/inews.c line
61
- in /usr/src/new/nntp/rrn/art.c line
709
- in /usr/src/new/nntp/rrn/bits.c line
373,
550
- in /usr/src/new/nntp/rrn/cheat.c line
67
- in /usr/src/new/nntp/rrn/head.c line
301
- in /usr/src/new/nntp/rrn/intrp.c line
534
- in /usr/src/new/nntp/server/common.h line
39
- in /usr/src/new/notes/src/nfmail.c line
164
- in /usr/src/new/rcs/src/rcsrev.c line
650,
656-660(3)
- in /usr/src/new/rn/art.c line
716
- in /usr/src/new/rn/bits.c line
373,
567
- in /usr/src/new/rn/cheat.c line
67
- in /usr/src/new/rn/head.c line
277
- in /usr/src/new/rn/intrp.c line
534
- in /usr/src/new/spms/src/bin/mkproject/mkproject.c line
545-549(2)
- in /usr/src/new/spms/src/bin/phelp/requestq.c line
28,
41
- in /usr/src/new/spms/src/bin/pmkdir/pmkdir.c line
409-413(2)
- in /usr/src/new/xns/examples/ch/registerhost.c line
128,
153,
188-192(2),
207,
252,
259
- in /usr/src/new/xns/examples/filing/cmds.c line
59,
73,
212,
225,
250,
294,
307,
348,
538,
584,
607,
631,
644,
689,
697,
797,
831,
853,
903
- in /usr/src/new/xns/examples/filing/main.c line
179
- in /usr/src/new/xns/examples/gap/gaptelnet.c line
162,
658,
702
- in /usr/src/new/xns/xnslib/except/test.c line
43
- in /usr/src/old/512restor.c line
208,
250,
336,
343
- in /usr/src/old/berknet/store.c line
20-23(2)
- in /usr/src/old/rfc678.c line
14
- in /usr/src/ucb/Mail/def.h line
286
- in /usr/src/ucb/dbx/main.c line
334
- in /usr/src/ucb/dbx/makedefs.c line
128
- in /usr/src/ucb/ftp/cmds.c line
59,
243,
257,
300,
428,
442,
514,
824,
876,
902,
947,
961,
1012,
1020,
1128,
1184,
1207,
1232,
1312,
1410,
1543,
1768
- in /usr/src/ucb/ftp/domacro.c line
35
- in /usr/src/ucb/ftp/main.c line
211
- in /usr/src/ucb/msgs/msgs.c line
682
- in /usr/src/ucb/telnet.c line
1930,
2024,
2275
- in /usr/src/ucb/tftp/main.c line
145,
260,
350,
429,
455,
520
- in /usr/src/ucb/tn3270/tn3270.c line
213,
669,
1035
- in /usr/src/usr.bin/find/bigram.c line
23
- in /usr/src/usr.bin/find/code.c line
57
- in /usr/src/usr.bin/learn/dounit.c line
51
- in /usr/src/usr.bin/learn/selsub.c line
76,
82,
97
- in /usr/src/usr.bin/learn/selunit.c line
33
- in /usr/src/usr.bin/refer/deliv1.c line
18
- in /usr/src/usr.bin/refer/kaiser.c line
20
- in /usr/src/usr.lib/libF77/mkvers.c line
57
- in /usr/src/usr.lib/libI77/mkvers.c line
57
- in /usr/src/usr.lib/libU77/mkvers.c line
57
- in /usr/src/usr.lib/lpr/lpc.c line
99
Defined variables
sccsid
defined in line
2;
never used