From 6a43f7bfdfdb693e877943490abd5839a630ad9d Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 13 Nov 2018 13:22:53 +0200 Subject: Fixed homedir with restore and updated delete --- src/ckutil.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/ckutil.c') diff --git a/src/ckutil.c b/src/ckutil.c index 8ae7e41..fde5e24 100644 --- a/src/ckutil.c +++ b/src/ckutil.c @@ -216,3 +216,15 @@ int util_is_link_owned_by_root(const char *link) { } return 0; } + +int y_or_n_prompt() { + char c; + + printf("[y/n] > "); + c = (char)getchar(); + + if (c == 'y') { + return 1; + } + return 0; +} -- cgit v1.2.3