From c89eb42d58321d3e1325a684ef50a05ee3f99cfa Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Sun, 26 Apr 2026 12:22:52 +0200 Subject: Add a "input" module --- src/input.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/input.h (limited to 'src/input.h') 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 -- cgit v1.2.3