+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++;
+ }
+}
+