diff options
author | dzwdz | 2022-08-06 00:12:51 +0200 |
---|---|---|
committer | dzwdz | 2022-08-06 00:12:51 +0200 |
commit | 03c6f3cf458c89df17b02557cd232f9cde73ed54 (patch) | |
tree | a89076307f32d9df6eec550f175accaa73d72408 /src/shared/mem.h | |
parent | 641b857dcfe1cfca625fbd75646b743142a9069c (diff) |
make snprintf shared; dynamic resolution support
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); |