> 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 00:48:08 up 2 days, 13:12, 3 users, load average: 0.35, 0.27, 0.20
This commit is contained in:
@ -18,7 +18,8 @@ int printf(const char *fmt, ...) {
|
||||
// putstr(buf);
|
||||
// va_end(ap);
|
||||
// return ret;
|
||||
panic("Not implemented");
|
||||
// panic("Not implemented");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int vsprintf(char *out, const char *fmt, va_list ap) {
|
||||
@ -34,11 +35,12 @@ int sprintf(char *out, const char *fmt, ...) {
|
||||
}
|
||||
|
||||
int snprintf(char *out, size_t n, const char *fmt, ...) {
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
int ret = vsnprintf(out, n, fmt, ap);
|
||||
va_end(ap);
|
||||
return ret;
|
||||
// va_list ap;
|
||||
// va_start(ap, fmt);
|
||||
// int ret = vsnprintf(out, n, fmt, ap);
|
||||
// va_end(ap);
|
||||
// return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int rvsnprintf(char* out, size_t n, const char* fmt, va_list ap);
|
||||
|
Reference in New Issue
Block a user