degesch: introduce transform_str()

This commit is contained in:
2015-07-08 23:14:29 +02:00
parent 24a082b5d8
commit d3b1754e14
2 changed files with 10 additions and 6 deletions

View File

@@ -58,6 +58,13 @@
(link)->next = (following); \
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)
{