summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-07-15 22:56:11 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-07-15 22:56:11 -0400
commitdb2fa0e1059a2426a1afa4fc0c97d6f85f176641 (patch)
treebc3684b2e776af6ab55560aa0174c099c7f01196 /util.h
parent7b1adcebf65d2131c4d324e73a3e3eace6b2ec28 (diff)
downloadbfs-db2fa0e1059a2426a1afa4fc0c97d6f85f176641.tar.xz
Handle yes/no prompts correctly according to the locale
Diffstat (limited to 'util.h')
-rw-r--r--util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/util.h b/util.h
index 256abd8..3c58f2a 100644
--- a/util.h
+++ b/util.h
@@ -143,4 +143,11 @@ enum bftw_typeflag mode_to_typeflag(mode_t mode);
*/
enum bftw_typeflag dirent_to_typeflag(const struct dirent *de);
+/**
+ * Process a yes/no prompt.
+ *
+ * @return 1 for yes, 0 for no, and -1 for unknown.
+ */
+int ynprompt(void);
+
#endif // BFS_UTIL_H