aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorJason Woodward2004-10-03 20:32:45 +0000
committerJason Woodward2004-10-03 20:32:45 +0000
commit93e0e321880ab89823399a13819405014076a550 (patch)
tree9516618734e38f3ede2ec9f13d28f84d91a180e9 /src/common.h
parent393f3d8f048a46a3810a8a327719f878cdb53126 (diff)
downloadslapt-get-93e0e321880ab89823399a13819405014076a550.tar.gz
merged Michel Hermier's ask_yes_no() patch to common.[ch] and transation.c
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index bf22594..2af6b52 100644
--- a/src/common.h
+++ b/src/common.h
@@ -38,3 +38,7 @@ void create_dir_structure(const char *dir_name);
/* generate an md5sum of filehandle */
void gen_md5_sum_of_file(FILE *f,char *result_sum);
+/* Ask the user to answer yes or no.
+ * return 1 on yes, 0 on no, else -1.
+ */
+int ask_yes_no(const char *format, ...);