home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource3
/
163_01
/
rindex.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1988-02-01
|
384 b
|
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;
}