|
|
BSD 4.3
/* getanswer.c - get a yes/no answer from the user */
#include "../h/mh.h"
#include <stdio.h>
int getanswer (prompt)
register char *prompt;
{
static int interactive = NOTOK;
if (interactive < OK)
interactive = isatty (fileno (stdin)) ? DONE : OK;
return (interactive ? gans (prompt, anoyes) : DONE);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.