From: wessels <> Date: Mon, 22 Jul 1996 22:40:58 +0000 (+0000) Subject: moved Tolower to libmiscutil.a X-Git-Tag: SQUID_3_0_PRE1~6014 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=673d7a4dc51cf0a8b11895b829aae50efd0d39a1;p=thirdparty%2Fsquid.git moved Tolower to libmiscutil.a --- diff --git a/include/util.h b/include/util.h index 3df79042c7..3a651a7db2 100644 --- a/include/util.h +++ b/include/util.h @@ -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_ */ diff --git a/lib/util.c b/lib/util.c index 7b29f50ef2..6849ebdc04 100644 --- a/lib/util.c +++ b/lib/util.c @@ -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 @@ -114,6 +114,9 @@ #if HAVE_STRING_H #include #endif +#if HAVE_CTYPE_H +#include +#endif #if HAVE_UNISTD_H #include #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++; + } +}