X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fgetanswer.c;h=4de8a89260f9393779155670847412146b5e59fa;hp=47072556ca75aa1f67f1be4575468c76c7310b81;hb=f78e7c6e6e616cc4ff2bee8a726365fafef2d8ce;hpb=ced6090a330d3d83d0bce709f756aa3d7d65fea4 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); }