projects
/
mmh
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added MACHINES to EXTRA_DIST so that it gets put in the distribution.
[mmh]
/
docs
/
historical
/
mh-6.8.5
/
sbr
/
getanswer.c
1
/* getanswer.c - get a yes/no answer from the user */
2
3
#include "../h/mh.h"
4
#include <stdio.h>
5
6
7
int getanswer (prompt)
8
register char *prompt;
9
{
10
static int interactive = NOTOK;
11
12
if (interactive < OK)
13
interactive = isatty (fileno (stdin)) ? DONE : OK;
14
15
return (interactive ? gans (prompt, anoyes) : DONE);
16
}