blob: 18fd386343a644d110387ec8a3a06b64f3994207 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <u.h>
#include <libc.h>
char*
strrchr(char *s, int c)
{
char *r;
if(c == 0)
return strchr(s, 0);
r = 0;
while(s = strchr(s, c))
r = s++;
return r;
}
|