aboutsummaryrefslogtreecommitdiff
path: root/src/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.h')
-rw-r--r--src/input.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/input.h b/src/input.h
new file mode 100644
index 0000000..7085bac
--- /dev/null
+++ b/src/input.h
@@ -0,0 +1,12 @@
+#ifndef INPUT_H
+#define INPUT_H
+
+/* Functions for command-line user interaction. */
+
+/* Prompt the user for yes or no (default is yes). Before calling, a prompt
+ * should be printed to stdout, eventually not with an ending newline. */
+int prompt_yes_no(void);
+
+void remove_ending_newline(char *str);
+
+#endif