+/* counts how many characters in s can be skipped while none of the
+ * characters of c appears */
+int mutt_skipchars (const char* s, const char* c) {
+ int ret = 0;
+ const char* p = s;
+ while (s && *s) {
+ register const char* t = c;
+ while (t && *t) {
+ if (*t == *s)
+ return (ret);
+ t++;
+ }
+ ret++;
+ s++;
+ }
+ return (mutt_strlen (p));
+}