diff options
| author | verdant <im@verdant.ee> | 2026-08-06 14:53:06 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-08-06 14:53:06 +0800 |
| commit | f79065957e81d8d297cf5a4f1019d698de3b8137 (patch) | |
| tree | 5b1107cde335f99b608107fdaf1dcabd155fc590 /src/utils.h | |
| parent | b87d0c4a36c2cfb3d79b09838b88fcab1a8d07f3 (diff) | |
| download | sf-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.h | 1 |
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 */ |
