- // Strip off any leading /'s
-
- while(yaffsfs_IsPathDivider(*p))
- p++;
-
- while(yaffsfs_IsPathDivider(*leftOver))
- leftOver++;
-
- while(*p && *leftOver &&
- yaffsfs_Match(*p,*leftOver))
- {
- p++;
- leftOver++;
- thisMatchLength++;
-
- // Skip over any multiple /'s to treat them as one or
- // skip over a trailling / in the prefix, but not the matching string
- while(yaffsfs_IsPathDivider(*p) &&
- (yaffsfs_IsPathDivider(*(p+1)) || !(*(p+1))))