> 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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user