X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fgetanswer.c;h=4de8a89260f9393779155670847412146b5e59fa;hp=ed5fac056cdb98775304ce7c3bd79be45ff1e8c3;hb=1fb6287fc4986668e8f49d7c3bdca27d53e267af;hpb=a485ed478abbd599d8c9aab48934e7a26733ecb1 diff --git a/sbr/getanswer.c b/sbr/getanswer.c index ed5fac0..4de8a89 100644 --- a/sbr/getanswer.c +++ b/sbr/getanswer.c @@ -1,22 +1,23 @@ /* - * getanswer.c -- get a yes/no answer from the user - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** getanswer.c -- get a yes/no answer from the user +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include #include +#include int -getanswer (char *prompt) +getanswer(char *prompt) { static int interactive = -1; if (interactive < 0) - interactive = isatty (fileno (stdin)) ? 1 : 0; + interactive = isatty(fileno(stdin)) ? 1 : 0; - return (interactive ? gans (prompt, anoyes) : 1); + return (interactive ? gans(prompt, anoyes) : 1); }