mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-18 21:02:34 +03:00
18 lines
239 B
C
18 lines
239 B
C
|
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++;
|
||
|
}
|
||
|
}
|