16 lines
338 B
C
16 lines
338 B
C
/* $Header$ */
|
|
/*
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
*/
|
|
char *
|
|
strrindex(str, chr)
|
|
register char *str, chr;
|
|
{
|
|
register char *retptr = 0;
|
|
|
|
while (*str)
|
|
if (*str++ == chr)
|
|
retptr = &str[-1];
|
|
return retptr;
|
|
}
|