From 03c6f3cf458c89df17b02557cd232f9cde73ed54 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 6 Aug 2022 00:12:51 +0200 Subject: make snprintf shared; dynamic resolution support --- src/shared/mem.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared/mem.h') 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 #include /* 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); -- cgit v1.2.3