X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fgetanswer.c;h=4de8a89260f9393779155670847412146b5e59fa;hb=976303d04d3bc2cad0afd5e3d364264783da56c2;hp=47072556ca75aa1f67f1be4575468c76c7310b81;hpb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;p=mmh diff --git a/sbr/getanswer.c b/sbr/getanswer.c index 4707255..4de8a89 100644 --- a/sbr/getanswer.c +++ b/sbr/getanswer.c @@ -8,15 +8,16 @@ #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); }