aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.h
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-08-06 14:53:06 +0800
committerverdant <im@verdant.ee>2026-08-06 14:53:06 +0800
commitf79065957e81d8d297cf5a4f1019d698de3b8137 (patch)
tree5b1107cde335f99b608107fdaf1dcabd155fc590 /src/utils.h
parentb87d0c4a36c2cfb3d79b09838b88fcab1a8d07f3 (diff)
downloadsf-f79065957e81d8d297cf5a4f1019d698de3b8137.tar.gz
sf-f79065957e81d8d297cf5a4f1019d698de3b8137.zip
utils: implement xsnprintf function
Check the return value of (v)snprintf
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h1
1 files changed, 1 insertions, 0 deletions
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 */