]> git.ozlabs.org Git - yaboot.git/blobdiff - lib/ctype.c
Allow yaboot to load relocatable kernel
[yaboot.git] / lib / ctype.c
index e028af4422bf7114c4f74f0b097903f22a1ca93f..edd533c6de83d2ebc279bcb31058eaddb3360559 100644 (file)
@@ -44,3 +44,11 @@ int strcasecmp(const char *s1, const char *s2)
     }
 }
 
+int strncasecmp(const char *cs,const char *ct,size_t n)
+{
+       signed char __res = 0;
+       while (n--)
+               if ((__res = tolower(*cs) - tolower(*ct++)) != 0 || !*cs++)
+                       break;
+       return __res;
+}