From 6e35536bddb52c8e6bc201265c77a846d879b5a3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 12 Aug 2005 21:01:28 +0000 Subject: * implement hashmap * de-glib-ify rr.[ch], rrlist.[ch] git-svn-id: file:///home/lennart/svn/public/avahi/trunk@306 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/util.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'avahi-core/util.c') diff --git a/avahi-core/util.c b/avahi-core/util.c index 514f0d9..4fe8737 100644 --- a/avahi-core/util.c +++ b/avahi-core/util.c @@ -27,6 +27,7 @@ #include #include #include +#include #include @@ -91,3 +92,26 @@ char *avahi_format_mac_address(const uint8_t* mac, size_t size) { return r; } + + +char *avahi_strdown(char *s) { + char *c; + + assert(s); + + for (c = s; *c; c++) + *c = (char) tolower(*c); + + return s; +} + +char *avahi_strup(char *s) { + char *c; + assert(s); + + for (c = s; *c; c++) + *c = (char) toupper(*c); + + return s; +} + -- cgit