> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 19:56:22 up  6:20,  1 user,  load average: 0.25, 0.19, 0.15
This commit is contained in:
tracer-ics2023
2024-09-03 19:56:23 +08:00
committed by zzy
parent ed79244a8c
commit dfaae5de4f

View File

@ -49,7 +49,11 @@ int strncmp(const char *s1, const char *s2, size_t n) {
}
void *memset(void *s, int c, size_t n) {
panic("Not implemented");
unsigned char *_s = (unsigned char*)s;
for (; n > 0; n--, _s++) {
*_s = (unsigned char)c;
}
return s;
}
void *memmove(void *dst, const void *src, size_t n) {