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