1: /* @(#)rindex.c 2.1 SCCS id keyword */
2: /*
3: * Return the ptr in sp at which the character c last
4: * appears; NULL if not found
5: */
6:
7: #define NULL 0
8:
9: char *
10: rindex(sp, c)
11: register char *sp, c;
12: {
13: register char *r;
14:
15: r = NULL;
16: do {
17: if (*sp == c)
18: r = sp;
19: } while (*sp++);
20: return(r);
21: }
Defined functions
rindex
defined in line
9; used 62 times
- in /usr/src/cmd/cu.c line
243-252(3)
- in /usr/src/cmd/diff/diff.h line
83
- in /usr/src/cmd/diff/diffreg.c line
195
- in /usr/src/cmd/du.c line
20,
45
- in /usr/src/cmd/find.c line
42,
79
- in /usr/src/cmd/fsck.c line
386,
451,
470
- in /usr/src/cmd/ln.c line
17,
87
- in /usr/src/cmd/login.c line
76,
246,
303
- in /usr/src/cmd/rmdir.c line
14,
50
- in /usr/src/cmd/tar.c line
1310-1312(2)
- in /usr/src/cmd/uucp/4.2/condevs.c line
366
- in /usr/src/cmd/uucp/4.2/uucp.h line
266
- in /usr/src/cmd/uucp/DIALUP/condevs.c line
367
- in /usr/src/cmd/uucp/DIALUP/line.c line
19,
49,
75
- in /usr/src/cmd/uucp/DIALUP/uucp.h line
268
- in /usr/src/cmd/v6/v6.c line
165,
178,
264
- in /usr/src/cmd/who.c line
19,
36
- in /usr/src/cmd/write.c line
27,
71
- in /usr/src/games/fortune/unstr.c line
23,
78
- in /usr/src/lib/c/gen/ttyslot.c line
16,
28
- in /usr/src/lib/libU77/system_.c line
42,
54
- in /usr/src/ucb/dump/src/dump.h line
62
- in /usr/src/ucb/dump/src/dumpmain.c line
228
- in /usr/src/ucb/lpr/src/lpd.c line
60,
301
- in /usr/src/ucb/lpr/src/lpdrestart.c line
36,
93,
119
- in /usr/src/ucb/lpr/src/lpr.c line
60,
276(2)
- in /usr/src/ucb/lpr/src/lprm.c line
54,
153(2)
- in /usr/src/ucb/lpr/src/ulf.c line
35,
152
- in /usr/src/ucb/pwhash/src/cmd/expw.c line
17
- in /usr/src/ucb/sendmail/include/useful.h line
52
- in /usr/src/ucb/sendmail/src/envelope.c line
284-285(2)
- in /usr/src/ucb/sendmail/src/main.c line
183
- in /usr/src/ucb/sendmail/src/recipient.c line
257
Defined macros
NULL
defined in line
7; used 1 times