aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.h
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-08-05 21:08:23 +0800
committerverdant <im@verdant.ee>2026-08-05 21:08:23 +0800
commitf3741ce97fd7649dda3bf77ec604e16a96fcac51 (patch)
tree986a2026030bec1c4a2f42d82953f6a5d1fa8469 /src/utils.h
parent002444ddd6e9ab8938e796f155f5ffd2ee14ad31 (diff)
downloadsf-f3741ce97fd7649dda3bf77ec604e16a96fcac51.tar.gz
sf-f3741ce97fd7649dda3bf77ec604e16a96fcac51.zip
Implement a yes-or-no function
If y is pressed, return true, or return false
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h2
1 files changed, 2 insertions, 0 deletions
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 <stdbool.h>
int get_input(const char *prompt, char *buf, size_t len);
+bool y_or_n(const char *prompt);
#endif /* SF_UTILS_H */