aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 99a70c5..e681ca0 100644
--- a/src/util.c
+++ b/src/util.c
@@ -57,3 +57,12 @@ void all_upper(char *s)
s++;
}
}
+
+void all_lower(char *s)
+{
+ while(*s)
+ {
+ *s = tolower(*s);
+ s++;
+ }
+}