summaryrefslogtreecommitdiff
path: root/sys/include/lib/string.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-31 14:06:59 -0400
committerIan Moffett <ian@osmora.org>2024-03-31 14:06:59 -0400
commit2f20af692b14a59c01156d228b1aec1bc38a140d (patch)
tree8d1a3e0c7185dee6d5f2151ba18f05216cb60932 /sys/include/lib/string.h
parent51df414212098e21cf64793260560e038df61c1d (diff)
kernel: lib: Add snprintf() and vsnprintf()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/lib/string.h')
-rw-r--r--sys/include/lib/string.h3
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_ */