blob: be04cde3889db902b5d6d2c695866f19dd1792a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <u.h>
#include <base.h>
char*
strยทerfindc(char *s, char *e, int c)
{
int n;
if(e < s)
return nil;
n = e-s;
c = (uchar)c;
while(n--)
if(s[n]==c)
return s+n;
return nil;
}
|