blob: 69b238f3cfb91077261ae0418aff8982d6ac18ba [file] [log] [blame]
/*
* strrchr.c
*/
#include <string.h>
char *strrchr(const char *s, int c)
{
const char *found = NULL;
while (*s) {
if (*s == (char)c)
found = s;
s++;
}
return (char *)found;
}