aboutsummaryrefslogtreecommitdiff
path: root/src/input.h
blob: 13a53d599fb79d8575f44a3f1a7076bf4b995b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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);

/* Readline wrapper that aborts if readline returns NULL. */
char *readline_with_check(const char *prompt);

#endif