home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_100
/
163_01
/
rindex.c
< prev
Wrap
Text File
|
1988-01-31
|
384b
|
13 lines
/*
** return pointer to the last occurrence of c in s
*/
rindex(s, c) char *s, c; {
char *rindex;
rindex = 0;
while(*s) {
if(*s == c) rindex = s;
s++;
}
return rindex;
}