From 62fce6197f3f4b814e64f1990332346462114bbf Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 11 Oct 2025 12:10:55 -0400 Subject: libc: stdio: Add vsnprintf() and printf() impl Signed-off-by: Ian Moffett --- src/lib/libc/include/stdio.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/lib/libc/include/stdio.h') diff --git a/src/lib/libc/include/stdio.h b/src/lib/libc/include/stdio.h index e97e07a..a90c4ad 100644 --- a/src/lib/libc/include/stdio.h +++ b/src/lib/libc/include/stdio.h @@ -30,6 +30,9 @@ #ifndef _STDIO_H #define _STDIO_H 1 +#include +#include + #define EOF (-1) /* @@ -43,4 +46,14 @@ */ int puts(const char *s); +/* + * Write a formatted string to a buffer + */ +int vsnprintf(char *s, size_t size, const char *fmt, va_list ap); + +/* + * Print a formatted string + */ +int printf(const char *__restrict fmt, ...); + #endif /* _!STDIO_H */ -- cgit v1.2.3