#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;
+ char *cdest = dest;
+ const char *csrc = src;
while (bytes--)
*(cdest++) = *(csrc++);
}
}
}
-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);
}
-
-