aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2016-01-24 19:01:04 -0500
committerFranklin Wei <frankhwei536@gmail.com>2016-01-24 19:01:04 -0500
commitc360ff0fc0bc7160af2c6229a709d98bf3247ed1 (patch)
treec4edcb9e261dd8f819f52a992406749a7490eb7a /src/util.c
parent47229fd6dbd9a756eb14264352604741276680a8 (diff)
downloadnetcosm-c360ff0fc0bc7160af2c6229a709d98bf3247ed1.zip
netcosm-c360ff0fc0bc7160af2c6229a709d98bf3247ed1.tar.gz
netcosm-c360ff0fc0bc7160af2c6229a709d98bf3247ed1.tar.bz2
netcosm-c360ff0fc0bc7160af2c6229a709d98bf3247ed1.tar.xz
objects partially work, can't serialize yet
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++;
+ }
+}