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;
49 void strcpy(unsigned char *a2, unsigned char *a1)
58 putbytes(c, strlen(c));
61 static char hexarr[] = "0123456789ABCDEF";
62 void tohex(unsigned char *s, unsigned long l)
65 for (i = 0; i < 8; i++)
67 s[i] = hexarr[l >> 28];
72 void puthex(unsigned long l)