From db2fa0e1059a2426a1afa4fc0c97d6f85f176641 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 15 Jul 2017 22:56:11 -0400 Subject: Handle yes/no prompts correctly according to the locale --- util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'util.h') 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 -- cgit v1.2.3