build: add a "user" arch to allow the kernel to run as a program on the host machine

This commit is contained in:
2023-02-25 17:58:23 +00:00
parent 8c87e78797
commit eed73e2414
21 changed files with 286 additions and 26 deletions

View File

@@ -11,10 +11,10 @@ char *strcpy(char *output, const char *input)
return output;
}
char *strncpy(char *output, const char *input, unsigned int count)
char *strncpy(char *output, const char *input, unsigned long count)
{
unsigned int size = count;
unsigned int i;
unsigned long size = count;
unsigned long i;
for (i = 0; i < size; i++) {
output[i] = input[i];