From 4a2b9ebcf38d6c0a2860b966421b3af125438488 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 25 May 2010 00:57:25 -0500 Subject: Renamed all of source files from .c to .cpp --- src/compat.c | 58 ---------------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 src/compat.c (limited to 'src/compat.c') diff --git a/src/compat.c b/src/compat.c deleted file mode 100644 index eb3088fe9..000000000 --- a/src/compat.c +++ /dev/null @@ -1,58 +0,0 @@ -/* Compatibility routines. - * - * (C) 2003-2010 Anope Team - * Contact us at team@anope.org - * - * Please read COPYING and README for further details. - * - * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - * - * - */ - -#include "services.h" - -/*************************************************************************/ - -#if !HAVE_STRICMP && !HAVE_STRCASECMP - -/* stricmp, strnicmp: Case-insensitive versions of strcmp() and - * strncmp(). - */ - -int stricmp(const char *s1, const char *s2) -{ - register int c; - - while ((c = tolower(*s1)) == tolower(*s2)) { - if (c == 0) - return 0; - s1++; - s2++; - } - if (c < tolower(*s2)) - return -1; - return 1; -} - -int strnicmp(const char *s1, const char *s2, size_t len) -{ - register int c; - - if (!len) - return 0; - while ((c = tolower(*s1)) == tolower(*s2) && len > 0) { - if (c == 0 || --len == 0) - return 0; - s1++; - s2++; - } - if (c < tolower(*s2)) - return -1; - return 1; -} -#endif - -/*************************************************************************/ - -- cgit