diff options
author | Sami Kerola <kerolasa@iki.fi> | 2013-08-29 15:50:17 +0100 |
---|---|---|
committer | Sami Kerola <kerolasa@iki.fi> | 2013-08-29 18:14:08 +0100 |
commit | 199e939d88333162f440ea50b83415dac625c89c (patch) | |
tree | 33b50feb3b2a065311e3c1477971e728e1fffccc /include/strutils.h | |
parent | 2659a49ef0ecb269b1dc41f06ad541a264bda795 (diff) | |
download | util-linux-199e939d88333162f440ea50b83415dac625c89c.tar.gz |
lib/strutils: move *swith() functions to private library
Avoid code dublication in libmount and time-util.
Proposed-by: Karel Zak <kzak@redhat.com>
Reference: http://markmail.org/message/h7zexvqsieqngtmx
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/strutils.h')
-rw-r--r-- | include/strutils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/strutils.h b/include/strutils.h index 709fcadc..8d8a6e46 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -102,4 +102,8 @@ extern int parse_range(const char *str, int *lower, int *upper, int def); extern int streq_except_trailing_slash(const char *s1, const char *s2); +extern char *startswith(const char *s, const char *prefix); +extern char *startswith_no_case(const char *s, const char *prefix); +extern char *endswith(const char *s, const char *postfix); + #endif |