summaryrefslogtreecommitdiffstats
path: root/avahi-core/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-core/util.c')
-rw-r--r--avahi-core/util.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/avahi-core/util.c b/avahi-core/util.c
index 41229c5..a5e9f52 100644
--- a/avahi-core/util.c
+++ b/avahi-core/util.c
@@ -101,3 +101,13 @@ char *avahi_strup(char *s) {
return s;
}
+
+char *avahi_strdown(char *s) {
+ char *c;
+ assert(s);
+
+ for (c = s; *c; c++)
+ *c = (char) tolower(*c);
+
+ return s;
+}