diff --git a/libc/minilibc/string.c b/libc/minilibc/string.c index 179cd07b8..52726f2cb 100644 --- a/libc/minilibc/string.c +++ b/libc/minilibc/string.c @@ -564,6 +564,21 @@ size_t strspn(const char *s, const char *accept) return l; } +size_t strcspn(const char *s, const char *reject) +{ + size_t l=0; + int a=1,i,al=strlen(reject); + + while((a)&&(*s)) + { + for(i=0;(a)&&(i