diff options
Diffstat (limited to 'src/libc/printf.c')
-rw-r--r-- | src/libc/printf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libc/printf.c b/src/libc/printf.c index ad1fd06..a760240 100644 --- a/src/libc/printf.c +++ b/src/libc/printf.c @@ -44,6 +44,10 @@ int vprintf(const char *restrict fmt, va_list ap) { return vfprintf(stdout, fmt, ap); } +int vsprintf(char *restrict s, const char *restrict fmt, va_list ap) { + return vsnprintf(s, ~0, fmt, ap); +} + int _klogf(const char *fmt, ...) { char buf[256]; int ret; |