From f79065957e81d8d297cf5a4f1019d698de3b8137 Mon Sep 17 00:00:00 2001 From: verdant Date: Thu, 6 Aug 2026 14:53:06 +0800 Subject: utils: implement xsnprintf function Check the return value of (v)snprintf --- src/utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index 7c73fc8..c539ad9 100644 --- a/src/utils.h +++ b/src/utils.h @@ -7,5 +7,6 @@ int get_input(const char *prompt, char *buf, size_t len); bool y_or_n(const char *prompt); +int xsnprintf(char *str, size_t size, const char *restrict format, ...); #endif /* SF_UTILS_H */ -- cgit v1.2.3