]>
diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/sbr/getanswer.c
1 /* getanswer.c - get a yes/no answer from the user */
10 static int interactive
= NOTOK
;
13 interactive
= isatty (fileno (stdin
)) ? DONE
: OK
;
15 return (interactive
? gans (prompt
, anoyes
) : DONE
);