X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fgetanswer.c;h=ed5fac056cdb98775304ce7c3bd79be45ff1e8c3;hb=337338b404931f06f0db2119c9e145e8ca5a9860;hp=f38a834fec668d30186a97ca6916783149764bb1;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/sbr/getanswer.c b/sbr/getanswer.c index f38a834..ed5fac0 100644 --- a/sbr/getanswer.c +++ b/sbr/getanswer.c @@ -1,6 +1,9 @@ - /* * 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 @@ -10,10 +13,10 @@ int getanswer (char *prompt) { - static int interactive = -1; + static int interactive = -1; - if (interactive < 0) - interactive = isatty (fileno (stdin)) ? 1 : 0; + if (interactive < 0) + interactive = isatty (fileno (stdin)) ? 1 : 0; - return (interactive ? gans (prompt, anoyes) : 1); + return (interactive ? gans (prompt, anoyes) : 1); }