Subversion Repositories Kolibri OS

Rev

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

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