We have a 3.9 release, update builds.pm
[maemo-rb.git] / apps / plugins / lua / strcspn.c
blob7af6f693ebd5005d788253de36e85ccc9dfd25c2
1 #include "rocklibc.h"
3 size_t strcspn(const char *s, const char *reject)
5 size_t l=0;
6 int a=1,i,al=strlen(reject);
8 while((a)&&(*s))
10 for(i=0;(a)&&(i<al);i++)
11 if (*s==reject[i]) a=0;
12 if (a) l++;
13 s++;
15 return l;