Adding upstream version 6.02~pre8+dfsg.
[syslinux-debian/hramrach.git] / com32 / lib / strrchr.c
bloba7d2fee78ffb6d1913a09220bd190e341081ce44
1 /*
2 * strrchr.c
3 */
5 #include <string.h>
7 char *strrchr(const char *s, int c)
9 const char *found = NULL;
11 while (*s) {
12 if (*s == (char)c)
13 found = s;
14 s++;
17 return (char *)found;