blob: a7d2fee78ffb6d1913a09220bd190e341081ce44 [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;
}