1: /* @(#)index.c 2.1 SCCS id keyword */
2: /*
3: * Return the ptr in sp at which the character c appears;
4: * NULL if not found
5: */
6:
7: #define NULL 0
8:
9: char *
10: index(sp, c)
11: register char *sp, c;
12: {
13: do {
14: if (*sp == c)
15: return(sp);
16: } while (*sp++);
17: return(NULL);
18: }
Defined functions
index
defined in line
9; used 48 times
- in /usr/src/cmd/login.c line
76
- in /usr/src/cmd/mail.c line
442
- in /usr/src/cmd/reboot.c line
175-177(2)
- in /usr/src/cmd/remind/delrem.c line
56
- in /usr/src/cmd/tbl/t3.c line
37
- in /usr/src/cmd/uucp/4.2/condevs.c line
1375
- in /usr/src/cmd/uucp/4.2/conn.c line
278,
286,
299,
736,
773-778(2)
- in /usr/src/cmd/uucp/4.2/uucp.h line
266
- in /usr/src/cmd/uucp/DIALUP/condevs.c line
1421
- in /usr/src/cmd/uucp/DIALUP/conn.c line
281,
289,
302,
739,
776-781(2)
- in /usr/src/cmd/uucp/DIALUP/uucp.h line
268
- in /usr/src/lib/c/gen/execvp.c line
32
- in /usr/src/lib/libF77/mkvers.c line
18,
54-59(2)
- in /usr/src/lib/libI77/mkvers.c line
18,
54-59(2)
- in /usr/src/lib/libU77/mkvers.c line
18,
54-59(2)
- in /usr/src/sys/autoconfig/args.c line
41-43(2)
- in /usr/src/ucb/lpr/src/lpq.c line
60,
349-353(2)
- in /usr/src/ucb/pwhash/src/cmd/chfn.c line
40(2)
- in /usr/src/ucb/sendmail/aux/arpa.c line
338
- in /usr/src/ucb/sendmail/aux/mconnect.c line
27
- in /usr/src/ucb/sendmail/aux/vacation.c line
152
- in /usr/src/ucb/sendmail/include/useful.h line
52
- in /usr/src/ucb/vsh/at.c line
94-96(2)
- in /usr/src/ucb/vsh/remove.c line
31,
47-50(2)
Defined macros
NULL
defined in line
7; used 1 times