blob: 1e0491f779c59805a5995924ecd51e88f1d0e72a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include "rocklibc.h"
#undef strpbrk
char *strpbrk(const char *s, const char *accept) {
register int i,l=strlen(accept);
for (; *s; s++)
for (i=0; i<l; i++)
if (*s == accept[i])
return (char*)s;
return 0;
}
|