diff options
Diffstat (limited to 'src/shared/mem.h')
-rw-r--r-- | src/shared/mem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/mem.h b/src/shared/mem.h index 8c83f2f..aac87f5 100644 --- a/src/shared/mem.h +++ b/src/shared/mem.h @@ -1,4 +1,5 @@ #pragma once +#include <stdarg.h> #include <stddef.h> /* note: (partially) tested in the userland tests */ @@ -11,3 +12,6 @@ void *memset(void *s, int c, size_t n); int strcmp(const char *s1, const char *s2); size_t strlen(const char *s); + +int snprintf(char *restrict str, size_t len, const char *restrict fmt, ...); +int vsnprintf(char *restrict str, size_t len, const char *restrict fmt, va_list ap); |