diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-10-27 01:20:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-10-27 01:20:01 +0200 |
commit | e8988fc2a26cda58a2088c2884f4c3802c25dfc8 (patch) | |
tree | 6c0321acef22fe204e95d7657959c95f9e5471e2 /src/shared/util.h | |
parent | ada45c785fc7b0cbe0adb9cbf641943410f4953f (diff) |
util: return the remaining string in startswith()
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index 8935beea2b..f6a4c1ea6c 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -142,8 +142,8 @@ static inline bool isempty(const char *p) { } char *endswith(const char *s, const char *postfix); -bool startswith(const char *s, const char *prefix); -bool startswith_no_case(const char *s, const char *prefix); +char *startswith(const char *s, const char *prefix); +char *startswith_no_case(const char *s, const char *prefix); bool first_word(const char *s, const char *word); |