aboutsummaryrefslogtreecommitdiff
path: root/src/input.h
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@inria.fr>2026-04-26 12:22:52 +0200
committerTristan Riehs <tristan.riehs@inria.fr>2026-04-26 12:30:07 +0200
commitc89eb42d58321d3e1325a684ef50a05ee3f99cfa (patch)
tree811a2f7ad41618fa975dbe7d2212377edd599a4a /src/input.h
parent2991c0b3560781344488680625954aa3ef0893c6 (diff)
Add a "input" module
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