diff options
author | Anton Kling <anton@kling.gg> | 2024-12-14 15:33:06 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-12-14 15:33:06 +0100 |
commit | 0495bfb0d64bb2b318b629fd1c821dc8e2c8647d (patch) | |
tree | 960e72aadc18f3ec0899dd69781c9ba55b5ef944 /kernel/libc/include | |
parent | 6179308e3f6e4c64013e5db5da9b30a22abca704 (diff) |
sb/printf: Add ksbprintf
Easier to add formatted strings to the string builder without
using intermediate buffers.
Diffstat (limited to 'kernel/libc/include')
-rw-r--r-- | kernel/libc/include/stdio.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <stdarg.h> #include <stddef.h> +#include <lib/sb.h> 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 |