summaryrefslogtreecommitdiff
path: root/src/libc/printf.c
diff options
context:
space:
mode:
authordzwdz2023-08-24 19:10:35 +0200
committerdzwdz2023-08-24 19:10:35 +0200
commit3e09037780ca95633749be3acd52e817eed7f98c (patch)
tree83bcf5026cd4383809c81c5f38473a6b1e46755e /src/libc/printf.c
parent292b2386d766826b15f5ca084d37aa2c485fdda6 (diff)
libc: get most of binutils to compile
Diffstat (limited to 'src/libc/printf.c')
-rw-r--r--src/libc/printf.c4
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;