Commit b4f03013 b4f0301366ab4953e3650a0340231a9b94df93ce by Sergey Poznyakoff

Add a missing function.

* libmailutils/strskip.c (mu_str_skip_cset): New function.
1 parent 8575afa0
......@@ -41,6 +41,14 @@ mu_str_skip_class_comp (const char *str, int class)
}
char *
mu_str_skip_cset (const char *str, const char *cset)
{
for (; *str && strchr (cset, *str); str++)
;
return (char*) str;
}
char *
mu_str_skip_cset_comp (const char *str, const char *cset)
{
for (; *str && strchr (cset, *str) == NULL; str++)
......@@ -48,3 +56,4 @@ mu_str_skip_cset_comp (const char *str, const char *cset)
return (char*) str;
}
......