> 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
 18:06:44 up 13:19,  1 user,  load average: 0.21, 0.09, 0.11
This commit is contained in:
tracer-ics2023
2024-09-04 18:06:45 +08:00
committed by zzy
parent 700565306c
commit 74ec2acb0f
5 changed files with 22 additions and 4 deletions

View File

@ -42,6 +42,19 @@ int vsnprintf(char *out, size_t n, const char *fmt, va_list ap) {
}
static int rvsnprintf(char* out, size_t n, const char* fmt, va_list ap) {
while (n) {
switch (*fmt)
{
case '%':
break;
default:
*out = *fmt;
out ++;
fmt ++;
n --;
break;
}
}
return 0;
}