home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource3
/
163_01
/
index.c
< prev
next >
Wrap
Text File
|
1988-02-01
|
384b
|
8 lines
/*
** return pointer to the first occurrence of c in s
*/
index(s, c) char *s, c; {
while(*s) if(*s++ == c) return --s;
return 0;
}