]> Joshua Wise's Git repositories - netwatch.git/blobdiff - lib/minilib.c
Add httpd.
[netwatch.git] / lib / minilib.c
index c1d36b6e143eb54cb929334b293c81fdb306e290..e90f7aff62a89ce9295ad8f9fe4a322aa766b458 100644 (file)
@@ -50,6 +50,16 @@ int strcmp (const char *a2, const char *a1) {
        }
 }
 
+int strncmp (const char *a2, const char *a1, int n) {
+       while (n--) {
+               if (*a2 != *a1) return 1;
+               if (*a2 == 0) return 0;
+               a1++;
+               a2++;
+       }
+       return 0;
+}
+
 int strlen(const char *c)
 {
        int l = 0;
This page took 0.023013 seconds and 4 git commands to generate.