ack/modules/src/string/strrindex.c
1994-06-24 11:31:16 +00:00

21 lines
365 B
C

/* $Id$ */
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
#include "ack_string.h"
char *
strrindex(str, chr)
register char *str;
int chr;
{
register char *retptr = 0;
while (*str)
if (*str++ == chr)
retptr = &str[-1];
return retptr;
}