From 0495bfb0d64bb2b318b629fd1c821dc8e2c8647d Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sat, 14 Dec 2024 15:33:06 +0100 Subject: sb/printf: Add ksbprintf Easier to add formatted strings to the string builder without using intermediate buffers. --- kernel/libc/include/stdio.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kernel/libc/include') diff --git a/kernel/libc/include/stdio.h b/kernel/libc/include/stdio.h index 60808dd..111be17 100644 --- a/kernel/libc/include/stdio.h +++ b/kernel/libc/include/stdio.h @@ -2,6 +2,7 @@ #define STDIO_H #include #include +#include void putc(const char c); void delete_characther(void); @@ -9,5 +10,6 @@ int kprintf(const char *format, ...); int vkprintf(const char *format, va_list list); int ksnprintf(char *out, size_t size, const char *format, ...); int kbnprintf(char *out, size_t size, const char *format, ...); +int ksbprintf(struct sb *ctx, const char *format, ...); #endif -- cgit v1.2.3