Initial commit of the Samsung YP-R0 port.
[maemo-rb.git] / apps / plugins / lua / strpbrk.c
blob1e0491f779c59805a5995924ecd51e88f1d0e72a
1 #include "rocklibc.h"
3 #undef strpbrk
4 char *strpbrk(const char *s, const char *accept) {
5 register int i,l=strlen(accept);
6 for (; *s; s++)
7 for (i=0; i<l; i++)
8 if (*s == accept[i])
9 return (char*)s;
10 return 0;