Subversion Repositories Kolibri OS

Rev

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

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