diff options
Diffstat (limited to '')
-rw-r--r-- | src/string_util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/string_util.c b/src/string_util.c index b93292854..3ae759917 100644 --- a/src/string_util.c +++ b/src/string_util.c @@ -24,6 +24,15 @@ #include <assert.h> +const char * +strchug_fast_c(const char *p) +{ + while (*p != 0 && g_ascii_isspace(*p)) + ++p; + + return p; +} + bool string_array_contains(const char *const* haystack, const char *needle) { |