From f3741ce97fd7649dda3bf77ec604e16a96fcac51 Mon Sep 17 00:00:00 2001 From: verdant Date: Wed, 5 Aug 2026 21:08:23 +0800 Subject: Implement a yes-or-no function If y is pressed, return true, or return false --- src/utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index fedbc5e..7c73fc8 100644 --- a/src/utils.h +++ b/src/utils.h @@ -3,7 +3,9 @@ #include "fm.h" #include "wm.h" +#include int get_input(const char *prompt, char *buf, size_t len); +bool y_or_n(const char *prompt); #endif /* SF_UTILS_H */ -- cgit v1.2.3