Rev 647 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6433 | siemargl | 1 | #include |
2 | |||
3 | size_t strcspn(const char* string, const char* strCharSet) |
||
145 | halyavin | 4 | { |
5 | const char* temp; |
||
6 | int i; |
||
7 | i=0; |
||
6433 | siemargl | 8 | while(*string) |
145 | halyavin | 9 | { |
10 | temp=strCharSet; |
||
11 | while (*temp!='\0') |
||
12 | { |
||
13 | if (*string==*temp) |
||
14 | return i; |
||
15 | temp++; |
||
16 | } |
||
17 | i++;string++; |
||
18 | } |
||
6433 | siemargl | 19 | return i; |
145 | halyavin | 20 | } |