2 * getanswer.c -- get a yes/no answer from the user
4 * This code is Copyright (c) 2002, by the authors of nmh. See the
5 * COPYRIGHT file in the root directory of the nmh distribution for
6 * complete copyright information.
14 getanswer (char *prompt)
16 static int interactive = -1;
19 interactive = isatty (fileno (stdin)) ? 1 : 0;
21 return (interactive ? gans (prompt, anoyes) : 1);