3 void memcpy(unsigned char *a2, unsigned char *a1, int bytes)
9 void memmove(unsigned char *dest, unsigned char *src, int bytes)
11 if ((dest > src) && (dest <= (src + bytes)))
13 /* do it backwards! */
23 int memcmp (unsigned char *a2, unsigned char *a1, int bytes) {
26 if (*(a2++) != *(a1++))
32 int strcmp (unsigned char *a2, unsigned char *a1) {
34 if (*a2 != *a1) return 1;
35 if (*a2 == 0) return 0;
51 putbytes(c, strlen(c));
54 static char hexarr[] = "0123456789ABCDEF";
55 void puthex(unsigned long l)
58 for (i = 0; i < 8; i++)
60 putbyte(hexarr[l >> 28]);