]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
moved Tolower to libmiscutil.a
authorwessels <>
Mon, 22 Jul 1996 22:40:58 +0000 (22:40 +0000)
committerwessels <>
Mon, 22 Jul 1996 22:40:58 +0000 (22:40 +0000)
include/util.h
lib/util.c

index 3df79042c72db57b0661e5939f282258c61c2fd9..3a651a7db2bcd7f7e71f5929ae4b7e54386a26d4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: util.h,v 1.7 1996/07/09 03:41:08 wessels Exp $
+ * $Id: util.h,v 1.8 1996/07/22 16:41:04 wessels Exp $
  *
  * AUTHOR: Harvest Derived
  *
@@ -225,5 +225,6 @@ extern void Log();
 extern void errorlog();
 #endif /* __STRICT_ANSI__ */
 
+extern void Tolower _PARAMS((char *));
 
 #endif /* ndef _UTIL_H_ */
index 7b29f50ef216cda9b7ae10f45e3196c13a58a950..6849ebdc04b547567d56db421c9c40c55f68ab4f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: util.c,v 1.10 1996/07/16 01:49:52 wessels Exp $
+ * $Id: util.c,v 1.11 1996/07/22 16:40:58 wessels Exp $
  *
  * DEBUG: 
  * AUTHOR: Harvest Derived
 #if HAVE_STRING_H
 #include <string.h>
 #endif
+#if HAVE_CTYPE_H
+#include <ctype.h>
+#endif
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -466,3 +469,13 @@ void xmemcpy(from, to, len)
     (void) memcpy(from, to, len);
 #endif
 }
+
+void Tolower(q)
+     char *q;
+{
+    char *s = q;
+    while (*s) {
+        *s = tolower((unsigned char) *s);
+        s++;
+    }
+}