2023-11-16 23:19:36 -05:00

19 lines
205 B
C

/*
* 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;
}