projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add test for empty sequence patch by c_14
[mmh]
/
sbr
/
getanswer.c
diff --git
a/sbr/getanswer.c
b/sbr/getanswer.c
index
4707255
..
4de8a89
100644
(file)
--- a/
sbr/getanswer.c
+++ b/
sbr/getanswer.c
@@
-8,15
+8,16
@@
#include <h/mh.h>
#include <stdio.h>
#include <h/mh.h>
#include <stdio.h>
+#include <unistd.h>
int
int
-getanswer (char *prompt)
+getanswer(char *prompt)
{
static int interactive = -1;
if (interactive < 0)
{
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);
}
}