Add a missing function.
* libmailutils/strskip.c (mu_str_skip_cset): New function.
Showing
1 changed file
with
9 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment