]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/tools.c
LOC fix for non-ldap LOC where ldap is available
[irc/evilnet/x3.git] / src / tools.c
index 6815a3605a173752e5f6e5a00263b3d9f07b1cf2..9231b5eb0452e18e4a3751b86a52402b66fac98a 100644 (file)
@@ -5,7 +5,7 @@
  *
  * x3 is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
@@ -357,6 +357,14 @@ static char irc_tolower[256];
 #undef tolower
 #define tolower(X) irc_tolower[(unsigned char)(X)]
 
+void
+irc_strtolower(char *str) {
+    char *p;
+    for(p = str;*p;p++) {
+       *p = tolower(*p);
+    }
+}
+
 int
 irccasecmp(const char *stra, const char *strb) {
     while (*stra && (tolower(*stra) == tolower(*strb)))