]>
diplodocus.org Git - nmh/blob - sbr/getanswer.c
3 * getanswer.c -- get a yes/no answer from the user
11 getanswer (char *prompt
)
13 static int interactive
= -1;
16 interactive
= isatty (fileno (stdin
)) ? 1 : 0;
18 return (interactive
? gans (prompt
, anoyes
) : 1);