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) ...@@ -41,6 +41,14 @@ mu_str_skip_class_comp (const char *str, int class)
41 } 41 }
42 42
43 char * 43 char *
44 mu_str_skip_cset (const char *str, const char *cset)
45 {
46 for (; *str && strchr (cset, *str); str++)
47 ;
48 return (char*) str;
49 }
50
51 char *
44 mu_str_skip_cset_comp (const char *str, const char *cset) 52 mu_str_skip_cset_comp (const char *str, const char *cset)
45 { 53 {
46 for (; *str && strchr (cset, *str) == NULL; str++) 54 for (; *str && strchr (cset, *str) == NULL; str++)
...@@ -48,3 +56,4 @@ mu_str_skip_cset_comp (const char *str, const char *cset) ...@@ -48,3 +56,4 @@ mu_str_skip_cset_comp (const char *str, const char *cset)
48 return (char*) str; 56 return (char*) str;
49 } 57 }
50 58
59
......