diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-08 03:31:55 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-08 03:31:55 -0400 |
commit | 63fd2487e1d9060ce9df3388907cea4d3ee01231 (patch) | |
tree | 36372564cd9c898da086205f3a1f1161fa31309a /lib/libc/include | |
parent | 279d37dd8e3388d01ecfe23a28bb1aaf1ece4245 (diff) |
usr: libc: Add initial vsnprintf() impl
- Support %x specifier for base 16 strings
- Support %d specifier for base 10 strings
- Support %p specifier for pointer strings
- Allow padding of %d strings
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc/include')
-rw-r--r-- | lib/libc/include/stdio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/include/stdio.h b/lib/libc/include/stdio.h index cdb9c14..460b674 100644 --- a/lib/libc/include/stdio.h +++ b/lib/libc/include/stdio.h @@ -75,6 +75,7 @@ __BEGIN_DECLS size_t fread(void *__restrict ptr, size_t size, size_t n, FILE *__restrict stream); size_t fwrite(const void *__restrict ptr, size_t size, size_t n, FILE *__restrict stream); +int vsnprintf(char *s, size_t size, const char *fmt, va_list ap); int fputc(int c, FILE *stream); int putchar(int c); |