Go to the source code of this file.
Definition at line 25 of file strrchr.c.
register const char *found, *p;
c = (unsigned char) c;
if (c == '\0')
return strchr (s, '\0');
found = NULL;
while ((p = strchr (s, c)) != NULL)
found = p;
s = p + 1;
return (char *) found;