diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-31 14:06:59 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-31 14:06:59 -0400 |
commit | 2f20af692b14a59c01156d228b1aec1bc38a140d (patch) | |
tree | 8d1a3e0c7185dee6d5f2151ba18f05216cb60932 /sys/include/lib | |
parent | 51df414212098e21cf64793260560e038df61c1d (diff) |
kernel: lib: Add snprintf() and vsnprintf()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/lib')
-rw-r--r-- | sys/include/lib/string.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <sys/types.h> +#include <stdarg.h> 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_ */ |