]> Joshua Wise's Git repositories - netwatch.git/blobdiff - grubload/minilib.c
add elf loader to grub boot; doesn't do aseg opening yet (todo!)
[netwatch.git] / grubload / minilib.c
index f2ab6629d858238d8fd76b0634e1e06536110c5d..b9813d7992fae94635eafc6fdc02776de76084cc 100644 (file)
@@ -20,6 +20,24 @@ void memmove(unsigned char *dest, unsigned char *src, int bytes)
                        *(dest++) = *(src++);
 }
 
+int memcmp (unsigned char *a2, unsigned char *a1, int bytes) {
+       while (bytes--)
+       {
+               if (*(a2++) != *(a1++))
+                       return 1;
+       }
+       return 0;
+}
+
+int strcmp (unsigned char *a2, unsigned char *a1) {
+       while (1) {
+               if (*a2 != *a1) return 1;
+               if (*a2 == 0) return 0;
+               a1++;
+               a2++;
+       }
+}
+
 int strlen(char *c)
 {
        int l = 0;
This page took 0.02611 seconds and 4 git commands to generate.