version 1.95, 2001/02/08 19:30:52 |
version 1.96, 2001/02/08 22:35:30 |
|
|
debug("Local version string %.100s", client_version_string); |
debug("Local version string %.100s", client_version_string); |
} |
} |
|
|
|
/* defaults to 'no' */ |
int |
int |
read_yes_or_no(const char *prompt, int defval) |
read_yes_or_no(const char *prompt, int defval) |
{ |
{ |
char buf[1024]; |
char buf[1024]; |
FILE *f; |
FILE *f; |
int retval = -1; |
int retval = -1; |
|
|
|
if (options.batch_mode) |
|
return 0; |
|
|
if (isatty(STDIN_FILENO)) |
if (isatty(STDIN_FILENO)) |
f = stdin; |
f = stdin; |