patch-2.2.8 linux/arch/ppc/lib/strcase.c
Next file: linux/arch/ppc/mbxboot/head.S
Previous file: linux/arch/ppc/kernel/traps.c
Back to the patch index
Back to the overall index
-  Lines: 15
-  Date:
Thu Apr 29 12:39:01 1999
-  Orig file: 
v2.2.7/linux/arch/ppc/lib/strcase.c
-  Orig date: 
Sat Aug 16 09:51:08 1997
diff -u --recursive --new-file v2.2.7/linux/arch/ppc/lib/strcase.c linux/arch/ppc/lib/strcase.c
@@ -10,3 +10,14 @@
 	} while (c1 == c2 && c1 != 0);
 	return c1 - c2;
 }
+
+int strncasecmp(const char *s1, const char *s2, int n)
+{
+	int c1, c2;
+
+	do {
+		c1 = tolower(*s1++);
+		c2 = tolower(*s2++);
+	} while ((--n > 0) && c1 == c2 && c1 != 0);
+	return c1 - c2;
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)