summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common.c')
-rw-r--r--common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common.c b/common.c
index 95590f5..94d5aa4 100644
--- a/common.c
+++ b/common.c
@@ -59,6 +59,13 @@
BLOCK_END
static void
+transform_str (char *s, int (*tolower) (int c))
+{
+ for (; *s; s++)
+ *s = tolower (*s);
+}
+
+static void
split_str (const char *s, char delimiter, struct str_vector *out)
{
const char *begin = s, *end;