#include "console.h"
#include <minilib.h>
-void memcpy(void *dest, void *src, int bytes)
+void memcpy(void *dest, const void *src, int bytes)
{
char * cdest = dest;
char * csrc = src;
}
}
-int strlen(char *c)
+int strlen(const char *c)
{
int l = 0;
while (*(c++))
} while (*(a1++));
}
-void puts(char *c)
+void puts(const char *c)
{
putbytes(c, strlen(c));
}
tohex(d, l);
puts(d);
}
+
+unsigned short htons(unsigned short in)
+{
+ return (in >> 8) | (in << 8);
+}