patch-2.1.48 linux/arch/ppc/kernel/strcase.c
Next file: linux/arch/ppc/kernel/stubs.c
Previous file: linux/arch/ppc/kernel/signal.c
Back to the patch index
Back to the overall index
-  Lines: 13
-  Date:
Thu Jul 31 13:09:17 1997
-  Orig file: 
v2.1.47/linux/arch/ppc/kernel/strcase.c
-  Orig date: 
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.1.47/linux/arch/ppc/kernel/strcase.c linux/arch/ppc/kernel/strcase.c
@@ -0,0 +1,12 @@
+#include <linux/ctype.h>
+
+int strcasecmp(const char *s1, const char *s2)
+{
+	int c1, c2;
+
+	do {
+		c1 = tolower(*s1++);
+		c2 = tolower(*s2++);
+	} while (c1 == c2 && c1 != 0);
+	return c1 - c2;
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov