Subversion Repositories Kolibri OS

Rev

Rev 647 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #include <string.h>
  2.  
  3. size_t strspn(const char* string,const char* strCharSet)
  4. {
  5.         int i;
  6.         const char* temp;
  7.         i=0;
  8.         while (*string!='\0')
  9.         {
  10.                 temp=strCharSet;
  11.                 while (*temp!='\0')
  12.                 {
  13.                         if (*temp==*string)
  14.                                 break;
  15.             temp++;
  16.                 }
  17.                 if (*temp=='\0')
  18.                         break;
  19.                 string++;
  20.                 i++;
  21.         }
  22.         return i;
  23. }
  24.