diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-08 23:14:29 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-08 23:15:48 +0200 |
commit | d3b1754e14b6508bddfda674edecbffdafe3d4f8 (patch) | |
tree | 62447969720cca2e8fc3fdf8125fdf6adf515e57 /common.c | |
parent | 24a082b5d896085553676ea2afe836ad03b643e0 (diff) | |
download | xK-d3b1754e14b6508bddfda674edecbffdafe3d4f8.tar.gz xK-d3b1754e14b6508bddfda674edecbffdafe3d4f8.tar.xz xK-d3b1754e14b6508bddfda674edecbffdafe3d4f8.zip |
degesch: introduce transform_str()
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |