]> git.notmuchmail.org Git - notmuch/commitdiff
util/string-util: export skip_space
authorDavid Bremner <david@tethera.net>
Thu, 30 Aug 2018 11:29:13 +0000 (08:29 -0300)
committerDavid Bremner <david@tethera.net>
Thu, 6 Sep 2018 11:07:13 +0000 (08:07 -0300)
It's only few lines, but we already define the function, so make it
usable elsewhere

util/string-util.c
util/string-util.h

index b0108811903b27153dcaece1fa10b893234c3b9f..fc2058e03483da596c72946f1fe29f6ecfa60b44 100644 (file)
@@ -141,7 +141,7 @@ make_boolean_term (void *ctx, const char *prefix, const char *term,
     return 0;
 }
 
-static const char*
+const char*
 skip_space (const char *str)
 {
     while (*str && isspace ((unsigned char) *str))
index 97770614adf1ab6930e529cd148dea47c71547f6..4c110a205ccfb5b2684183e79ca2147d1c891b69 100644 (file)
@@ -77,6 +77,8 @@ unsigned int strcase_hash (const void *ptr);
 
 void strip_trailing (char *str, char ch);
 
+const char* skip_space (const char *str);
+
 #ifdef __cplusplus
 }
 #endif