]>
diplodocus.org Git - nmh/blob - sbr/getanswer.c
f38a834fec668d30186a97ca6916783149764bb1
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);