kolibrios/programs/develop/ktcc/trunk/libc/string/strcspn.c

18 lines
239 B
C
Raw Normal View History

int strcspn(const char* string, const char* strCharSet)
{
const char* temp;
int i;
i=0;
while(1)
{
temp=strCharSet;
while (*temp!='\0')
{
if (*string==*temp)
return i;
temp++;
}
i++;string++;
}
}