From 2f20af692b14a59c01156d228b1aec1bc38a140d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 31 Mar 2024 14:06:59 -0400 Subject: kernel: lib: Add snprintf() and vsnprintf() Signed-off-by: Ian Moffett --- sys/include/lib/string.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/include/lib/string.h') diff --git a/sys/include/lib/string.h b/sys/include/lib/string.h index d8f6ea2..f4ee93d 100644 --- a/sys/include/lib/string.h +++ b/sys/include/lib/string.h @@ -31,6 +31,7 @@ #define _LIB_STRING_H_ #include +#include size_t strlen(const char *s); char *itoa(int64_t value, char *buf, int base); @@ -41,5 +42,7 @@ void *memset(void *s, int c, size_t n); void *memset64(void *s, int c, size_t n); int memcmp(const void *s1, const void *s2, size_t n); int strcmp(const char *s1, const char *s2); +int vsnprintf(char *s, size_t size, const char *fmt, va_list ap); +int snprintf(char *s, size_t size, const char *fmt, ...); #endif /* !_LIB_STRING_H_ */ -- cgit v1.2.3