#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;
tohex(d, l);
puts(d);
}
+
+unsigned short htons(unsigned short in)
+{
+ return (in >> 8) | (in << 8);
+}